Home / CSE / PHP - CS :: Functions in PHP

CSE :: PHP - CS

  1. phpinfo() will display about?
    1. OS version information
    2. PHP installation
    3. Variables
    4. HTTP headers

  2. A.

     Option 1

    B.

     Option 2

    C.

     Option 3

    D.

     Option 4

    E.

     All the Above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3.  . . . . returns a new DateTime object.

  4. A.

     getdate()

    B.

     date_create()

    C.

     date_sunrise()

    D.

     date()

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. It is always necessary to use parentheses with the print function.

  6. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The below statement will return.

    $Var = substr(""abcdef"", -4, 1);

  8. A.

     returns "f"

    B.

     returns "d"

    C.

     returns "c"

    D.

     returns "cd"

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Returning values from functions may include .....

  10. A.

     Arrays

    B.

     Objects

    C.

     Both A & B

    D.

     None of above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The arguments in a function are evaluated from .....

  12. A.

     left to right

    B.

     right to left

    C.

     sometimes left to right and sometimes right to left

    D.

     Always right to left

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. strlen() returns the length of the string on success and . . . . if the string is empty.

  14. A.

     -1

    B.

     NULL

    C.

     Garbage value

    D.

     0

    View Answer

    Workspace

    Discuss Discuss in Forum