1. Question: Which of the following comparisons will evaluate to true?

    A
    't' == t

    B
    1 === "1time"

    C
    "top" == 0

    D
    "top" === 0

    E

    Note: Not available
    1. Report
  2. Question: Which function is best suited for removing markup tags from a string?

    A
    strip_markup

    B
    strip_tags

    C
    str_replace

    D
    preg_replace

    E

    Note: Not available
    1. Report
  3. Question: Which of the following PHP function is used to determine the length of any string?

    A
    strlen()

    B
    str_len()

    C
    count()

    D
    length()

    Note: Not available
    1. Report
  4. Question: Which of the following statement is not correct for PHP strcmp(str1,str2) function in case of return?

    A
    It returns 0 if str1 and str2 are equal

    B
    It returns 1 if str1 is less than str2

    C
    It returns -1 if str2 is less than str1

    D
    It returns 1 if str1 and str2 are equal

    Note: Not available
    1. Report
  5. Question: What will produce output for the following PHP code fragment?
    $email1="admin@example.com";
    $email2="ADMIN@example.com";
    
    if(!strcasecmp($email1,$email2)){
      echo "The email address are identical!";
    }
    
    if(strcmp($email1,$email2)){
      echo "The email address are identical!";
    }

    A
    None outputting

    B
    Error

    C
    The email address are identical

    D
    The email address are identical! The email address are identical!

    Note: Not available
    1. Report
  6. Question: Which of the following PHP string function is not used to change the character's case?

    A
    strtolower()

    B
    ucfirst()

    C
    ucwords()

    D
    strtoupper()

    E
    ucline()

    Note: Not available
    1. Report
  7. Question: Which of the following function is used to convert newline \n characters into <br/>.

    A
    nltobr()

    B
    nl2br()

    C
    newline()

    D
    nl_br()

    Note: Not available
    1. Report
  8. Question: How to handle string if we use ENT_COMPAT constant as an optional parameter for htmlentities().

    A
    Convert double quotes and ignore single quotes. This is the default.

    B
    Ignore both double and single quotes.

    C
    Convert both double and single quotes.

    D
    none

    Note: Not available
    1. Report
  9. Question: htmlspecialchars() is used to convert special characters into HTML entities and they are:

    A
    & " ' < >

    B
    & " ' < > #

    C
    & " ' < > # _

    D
    & " ' < > _ # *

    Note: Not available
    1. Report
  10. Question: Which of the following PHP function is used to clear HTML tags from sting?

    A
    remove_tags()

    B
    strip_tags()

    C
    clear_tags()

    D
    cleartags()

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd