1. 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
  2. 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
  3. 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
  4. Question: Multiple select/load is possible with:

    A
    Checkbox

    B
    Select

    C
    File

    D
    All of the above

    Note: Not available
    1. Report
  5. 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
  6. Question: Which of the following is not supported in PHP5?

    A
    Type Hinting

    B
    Reflection

    C
    Magic Methods

    D
    Multiple Inheritance

    E
    Object Cloning

    Note: Not available
    1. Report
  7. Question: You need to count the number of parameters given in the URL by a POST operation. The correct way is:

    A
    count($POST_VARS);

    B
    count($POST_VARS_PARAM);

    C
    count($_POST);

    D
    count($HTTP_POST_PARAM);

    Note: Not available
    1. Report
  8. Question: Which of the following pair have non-associative equal precedence?

    A
    +,-

    B
    ==,!=

    C
    <<,>>

    D
    &=,|=

    Note: Not available
    1. Report
  9. Question: How would you start a session?

    A
    session(start);

    B
    session();

    C
    session_start();

    D
    begin_sesion();

    Note: Not available
    1. Report
  10. Question: What is the output of the following code?
    <?php
    
    function  vec_add (&$a, $b)
    {
        $a['x'] += $b['x'];
        $a['y'] += $b['y'];
        $a['z'] += $b['z'];
    }
    
    $a = array ('x' => 3, 'y' => 2, 'z' => 5);
    $b = array ('x' =>9, 'y' => 3, 'z' => -7);
    
    vec_add ($a, $b);
    
    print_r ($a);
    
    ?>

    A
    Array  (     [x] => 9     [y] => 3     [z] => -7  )

    B
    Array  (     [x] => 3     [y] => 2     [z] => 5  )

    C
    Array  (     [x] => 12     [y] => 5     [z] => -2  )

    D
    Error

    E
    None of the above

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