1. Question: Variable/functions in PHP don’t work directly with:

    A
    echo()

    B
    isset()

    C
    print()

    D
    All of the above

    Note: Not available
    1. Report
  2. Question: Which of the following is a PHP resource?

    A
    Domxml document

    B
    Odbc link

    C
    File

    D
    All of the above

    Note: Not available
    1. Report
  3. Question: The value of a local variable of a function has to be retained over multiple calls to that function. How should that variable be declared?

    A
    local

    B
    global

    C
    static

    D
    None

    Note: Not available
    1. Report
  4. Question: What will be the output of the following code? <?php var_dump (3*4); ?>

    A
    int(3*4)

    B
    int(12)

    C
    3*4

    D
    12

    E
    None

    Note: Not available
    1. Report
  5. Question: Does PHP provide the goto keyword in latest version?

    A
    Yes

    B
    No

    Note: Not available
    1. Report
  6. Question: What will be the output of the following code? $Rent = 250 Function Expenses($Other) {     $Rent = 250 + $Other;     Return $Rent; } Expenses(50); Echo $Rent;

    A
    300

    B
    250

    C
    200

    D
    Program will not compile

    Note: Not available
    1. Report
  7. Question: What will be the output of following code?
    $a = 10;
    Echo “Value of a = $a”;

    A
    Value of a = 10

    B
    Value of a = $a

    C
    Undefined

    D
    Syntax Error

    Note: Not available
    1. Report
  8. Question: What will be the result of following operation? Print 4<<5;

    A
    3

    B
    128

    C
    120

    D
    6

    Note: Not available
    1. Report
  9. Question: Multiple select/load is possible with:

    A
    Checkbox

    B
    Select

    C
    File

    D
    All of the above

    Note: Not available
    1. Report
  10. Question: What do you infer from the following code?
    <?php
           $str = 'Dear Customer,\n Thanks for your query. We will replay very soon.?\n Regards. \n Customer Service Agent';
           print $str;
    ?>

    A
    Only first \n character will be recognised and new line will be inserted.

    B
    Last \n will not be recognised and only first two parts will come in new lines.

    C
    All the \n will work and text will be printed on respective new lines.

    D
    All will be printed on one line irrespective of the \n.

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