PHP Exceptions and Error Handling Which of the following statements invoke the exception class? throw new Exception(); throws new Exception(); new Exception(); new throws Exception(); throw new Exception(); throws new Exception(); new Exception(); new throws Exception(); ANSWER DOWNLOAD EXAMIANS APP
PHP Exceptions and Error Handling How many methods are available for the exception class? 5 6 8 7 5 6 8 7 ANSWER DOWNLOAD EXAMIANS APP
PHP Exceptions and Error Handling Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console? LOG_ODELAY LOG_CONS LOG_NDELAY LOG_PERROR LOG_ODELAY LOG_CONS LOG_NDELAY LOG_PERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Exceptions and Error Handling What is the description of Error level E_ERROR? Compile-time error Fatal run-time error Fatal Compile-time error Near-fatal error Compile-time error Fatal run-time error Fatal Compile-time error Near-fatal error ANSWER DOWNLOAD EXAMIANS APP
PHP Exceptions and Error Handling Which of the following is/are an exception?1. OutOfBoundException2. OutOfRangeException3. OverflowException4. UnderflowException All of the mentioned 1 and 2 1 and 3 None of the mentioned All of the mentioned 1 and 2 1 and 3 None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Exceptions and Error Handling Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use? error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR error_reporting = E_ALL error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR error_reporting = E_ALL error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR ANSWER DOWNLOAD EXAMIANS APP