1. How many error levels are available in PHP? A. 14 B. 15 C. 16 D. 17 Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
2. What is the description of Error level E_ERROR? A. Fatal run-time error B. Near-fatal error C. Compile-time error D. Fatal Compile-time error Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
3. Which version of PHP introduced E_STRICT Error level? A. PHP 4 B. PHP 5 C. PHP 5.2 D. PHP 5.3 Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B Solution: Description for E_STRICT is PHP version portability suggestions
4. Which character do the error_reporting directive use to represent the logical operator NOT? A. / B. ! C. ~ D. ^ Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: The twidle (~) character is used to represent the logical operator NOT.
5. Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use? 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 Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
6. Which version introduced the function error_get_last()? A. PHP 4 B. PHP 5 C. PHP 5.2 D. PHP 5.3 Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C Solution: This function returns an associative array consisting of the type, message, file, and line of the last occurring error.
7. Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line? A. ignore_repeated_errors B. ignore_repeat_error C. repeatedly_ignore_error D. repeated_error_ignore Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
8. Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions? A. define_variable() B. define_log_variable() C. log_variable() D. define_syslog_variable() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D Solution: If you’re running PHP version 5.2.X or older, you need to execute this function before using any of the following logging functions.
9. Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console? A. LOG_CONS B. LOG_NDELAY C. LOG_ODELAY D. LOG_PERROR Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
10. Which function is responsible for sending a custom message to the system log? A. systemlog() B. syslog() C. log_system() D. sys_log() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board