Exception Handling in PHP

Programming Language > PHP

This is the MCQ questions and answers section on "PHP Exception Handling" with the explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand. ➲ Exception Handling in PHP - Quiz


  • A 14
  • B 15
  • C 16
  • D 17
  • A Fatal run-time error
  • B Near-fatal error
  • C Compile-time error
  • D Fatal Compile-time error
  • A PHP 4
  • B PHP 5
  • C PHP 5.2
  • D PHP 5.3
  • A /
  • B !
  • C ~
  • D ^
  • A PHP 4
  • B PHP 5
  • C PHP 5.3
  • D PHP 6
  • A 5
  • B 6
  • C 7
  • D 8
  • A PHP 4
  • B PHP 5
  • C PHP 5.1
  • D PHP 5.3
  • A throws new Exception();
  • B throw new Exception();
  • C new Exception();
  • D new throws Exception();
  • A Returns the message if it is passed to the constructor.
  • B Returns the message if it is passed to the class.
  • C Returns the message if it is passed to the file.
  • D Returns the message if it is passed to the object.
  • A protected
  • B final
  • C static
  • D private
  • A Standard PHP Library
  • B Source PHP Library
  • C Standard PHP List
  • D Source PHP List
  • A All of the mentioned
  • B Only (iv)
  • C (iii) and (iv)
  • D None of the mentioned
  • A All of the mentioned
  • B (i) and (iii)
  • C (i) and (ii)
  • D None of the mentioned
  • A PHP 4
  • B PHP 5
  • C PHP 5.2
  • D PHP 5.3
  • A systemlog()
  • B syslog()
  • C log_system()
  • D sys_log()
  • A LOG_CONS
  • B LOG_NDELAY
  • C LOG_ODELAY
  • D LOG_PERROR
  • A define_variable()
  • B define_log_variable()
  • C log_variable()
  • D define_syslog_variable()
  • A ignore_repeated_errors
  • B ignore_repeat_error
  • C repeatedly_ignore_error
  • D repeated_error_ignore