Home / CSE / PHP - CS :: Exceptions and Error Handling

CSE :: PHP - CS

  1. How many error levels are available in PHP?

  2. A.

     14

    B.

     15

    C.

     16

    D.

     17

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What is the description of Error level E_ERROR?

  4. A.

     Fatal run-time error

    B.

     Near-fatal error

    C.

     Compile-time error

    D.

     Fatal Compile-time error

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which version of PHP introduced E_STRICT Error level?

  6. A.

     PHP 4

    B.

     PHP 5

    C.

     PHP 5.2

    D.

     PHP 5.3

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which character do the error_reporting directive use to represent the logical operator NOT?

  8. A.

     /

    B.

     !

    C.

     ~

    D.

     ^

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?

  10. A.

     error_reporting = E_ALL

    B.

     error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR

    C.

     error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR

    D.

     error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which version introduced the function error_get_last()?

  12. A.

     PHP 4

    B.

     PHP 5

    C.

     PHP 5.2

    D.

     PHP 5.3

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?

  14. A.

     ignore_repeated_errors

    B.

     ignore_repeat_error

    C.

     repeatedly_ignore_error

    D.

     repeated_error_ignore

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?

  16. A.

     define_variable()

    B.

     define_log_variable()

    C.

     log_variable()

    D.

     define_syslog_variable()

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?

  18. A.

     LOG_CONS

    B.

     LOG_NDELAY

    C.

     LOG_ODELAY

    D.

     LOG_PERROR

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which function is responsible for sending a custom message to the system log?

  20. A.

     systemlog()

    B.

     syslog()

    C.

     log_system()

    D.

     sys_log()

    View Answer

    Workspace

    Discuss Discuss in Forum