1. Question: What do you mean by prototype?

    A
    Simply the function's definition

    B
    Function  arguments.

    C
    Function name

    D
    Function Returns type.

    Note: Not available
    1. Report
  2. Question: What does break do?

    A
    Ends execution of the current switch structure

    B
    Moves on to the next iteration of the current for, foreach, while, do-while or switch structure

    C
    Ends execution of the current for, foreach, while, do-while or switch structure

    Note: Not available
    1. Report
  3. Question: Which operator is used to concatenate two strings in php?

    A
    dot operator (.)

    B
    plus operator (+)

    C
    minus operator(-)

    Note: Not available
    1. Report
  4. Question: Which of the following function is used for terminate the script execution in PHP?

    A
    break()

    B
    quit()

    C
    close()

    Note: Not available
    1. Report
  5. Question: How to returns any ensuring value back to the function caller?

    A
    using  break statement

    B
    using return statement

    C
    using Continue Statement

    Note: Not available
    1. Report
  6. Question: <?php     define("x","5");     $x=x+10;     echo x;
    ?>

    A
    Error

    B
    15

    C
    10

    D
    5

    Note: Not available
    1. Report
  7. Question: Which statement will evaluate and include a file into the location where it is called.

    A
    include() statement

    B
    Inc statement

    C
    Requrired_once  Statement

    Note: Not available
    1. Report
  8. Question: Which type of function is called by itself?

    A
    Nesting function

    B
    Recursive function

    C
    Variable function

    D
    All

    Note: Not available
    1. Report
  9. Question: For the following code: <?php Function Expenses() { Function Salary() { } function Loan() { function Balance() { } } } ?>  Which of the following sequence will run successfully?

    A
    (); Loan(); BalanExpenses(); Salaryce();

    B
    Salary(); Expenses(); Loan(): Balance();

    C
    Expenses(); Salary(); Balance(); Loan();

    D
    Balance(); Loan(); Salary(); Expenses();

    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 © 2024. Powered by Intellect Software Ltd