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: Which of the following is/are not an exception?
(i) BadFunctionCallException
(ii) BadMethodCallException
(iii) LogicException
(iv) DomainException
A.All of the mentioned
B.Only (iv)
C.(iii) and (iv)
D.None of the mentioned
Correct Option: DExplanation: None of the mentioned
Q: Which of the following is/are an exception?
(i) OutOfBoundException
(ii) OutOfRangeException
(iii) OverflowException
(iv) UnderflowException
A.All of the mentioned
B.(i) and (iii)
C. (i) and (ii)
D.None of the mentioned
Correct Option: AExplanation: All of the mentioned
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: How many error levels are available in PHP?
A.14
B.15
C.16
D.17
Correct Option: CExplanation: 16
Q: What does SPL stand for?
A.Standard PHP Library
B.Source PHP Library
C.Standard PHP List
D. Source PHP List
Correct Option: AExplanation: The standard PHP library(SPL) extends PHP by offering ready-made solutions to commonplace tasks such as file access, iteration of various sorts etc.
Q: How many methods are available for the exception class?