1. Question: Which of the following are not considered as Boolean false?

    A
    FALSE

    B
    0

    C
    "0"

    D
    "FALSE"

    E
    4

    F
    -4

    G
    NULL

    Note: Not available
    1. Report
  2. Question: Which of the following errors can a PHP corrpiler identify?

    A
    syntax erro's

    B
    parse errors

    C
    logical errors

    D
    fatal errors

    Note: Not available
    1. Report
  3. Question: Which of the following PHP commands can be used to delete a file on a UNIX system?

    A
    filedelete()

    B
    delete()

    C
    deletefile()

    D
    unlink()

    E
    there is no such function

    Note: Not available
    1. Report
  4. Question: What will be the output of the following code? $i=4; $j=30; $k=0; $k=$j++/++$i; echo $i . " " . $j . " " . ($k++) . " ";

    A
    6 31 6

    B
    5 31 6.2

    C
    5 31 7

    D
    4 31 7.5

    E
    5 31 6

    Note: Not available
    1. Report
  5. Question: What will be the output of the following code?
    $str = <<<EOD
    test line 1
    test line 2
    EOD;
    echo $str;

    A
    <<<EOD

    B
    Syntax Error

    C
    test line 1
    test line 2

    D
    EOD

    Note: Not available
    1. Report
  6. Question: What will be the output of the following code?
    echo 12.6;

    A
    12.6

    B
    126

    C
    18

    D
    Error: You cannot add integers through the concatenation operator(.)

    Note: Not available
    1. Report
  7. Question: What will be the output of following code?
    $var1="a";
    $$var1="b";
    echo "$var1 $a";

    A
    a b

    B
    $var1 $a

    C
    Error: $a is undefined

    D
    Error: Parse error in line 2 ($$var1 = "b")

    Note: Not available
    1. Report
  8. Question: The implode() function is used to:

    A
    convert arrays into strings

    B
    convert strings into arrays

    C
    reverse an array

    D
    interchange the rows and columns of the array

    E
    there is no such function

    Note: Not available
    1. Report
  9. Question: What will be the output of the following code?
    $arr = "a";
    $arr[0]="b";
    echo $arr;
    echo $arr[0];

    A
    ab

    B
    $arr is undefined

    C
    bb

    D
    Parse error

    Note: Not available
    1. Report
  10. Question: When the mail function returns the value true, it means:

    A
    your email has reached in your outgoing mail service.

    B
    your email has been forwarded successfully from your outgoing mail server.

    C
    your email has reached the recipient's mailbox (that's not necessarily on their computer - it might be a holding mailbox at their ISP for example).

    D
    your outgoing mail server has rejected your request to relay the mail, as PHP isn't an authorized used of that mail server.

    E
    your email has reached the recipient and been read.

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