Q: Which version of PHP was added with Exception handling?
A.PHP 4
B.PHP 5
C.PHP 5.3
D.PHP 6
Correct Option: BExplanation: Exception handling was added to PHP with the version 5 release, and further enhanced with version 5.3.
Q: Which logging option
A.LOG_CONS
B.LOG_NDELAY
C.LOG_ODELAY
D.LOG_PERROR
Correct Option: AExplanation: LOG_CONS
Q: Which function is responsible for sending a custom message to the system log?
A.systemlog()
B.syslog()
C. log_system()
D. sys_log()
Correct Option: BExplanation: syslog()
Q: How many error levels are available in PHP?
A.14
B.15
C.16
D.17
Correct Option: CExplanation: 16
Q: How many predefined exceptions does SPL provide access to?
A. 13
B. 14
C.15
D.16
Correct Option: AExplanation: 13
Q: 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()
Correct Option: DExplanation: 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.
Q: What is the description of Error level E_ERROR?