1. 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
  2. Question: Which of the following crypto in PHP returns longest hash value?

    A
    md5()

    B
    sha1()

    C
    crc32()

    D
    All return same length hash

    Note: Not available
    1. Report
  3. Question: If visibility is not defined for a method/member then it is treated as public static.

    A
    True

    B
    False

    Note: Not available
    1. Report
  4. Question: You wrote following script to check for the right category: 1    <?php 2    $cate=5; 3    … 4    … 5     6    if  ($cate==5) 7    { 8    ? > 9    Correct category! 10    <?php 11    }else{ 12    ? > 13    Incorrect category! 14    < ? php 15    } 16    ? > What will be the output of the program if value of ‘cate’ remains 5?

    A
    Correct category!

    B
    Incorrect category!

    C
    Error due to use of invalid operator in line 6: “if ($cate==5)”

    D
    syntax at line 8, 10, 12 and Error due to incorrect 14

    Note: Not available
    1. Report
  5. Question: What will be the output of the following code?
    $a = 10;
    if($a > 5 OR < 15)
      echo "true";
    else
       echo "false";

    A
    true

    B
    false

    C
    No output

    D
    Parse Error

    Note: Not available
    1. Report
  6. 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
  7. 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
  8. 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
  9. 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
  10. Question: Does PHP provide the goto keyword in latest version?

    A
    Yes

    B
    No

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