Q: Which one of the following is the right description for the method getMessage()?
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.
Correct Option: AExplanation: Returns the message if it is passed to the constructor.
Q: Which version of PHP introduced E_STRICT Error level?
A.PHP 4
B.PHP 5
C.PHP 5.2
D.PHP 5.3
Correct Option: BExplanation: Description for E_STRICT is PHP version portability suggestions
Q: Which version introduced the function error_get_last()?
A.PHP 4
B.PHP 5
C.PHP 5.2
D.PHP 5.3
Correct Option: CExplanation: This function returns an associative array consisting of the type, message, file, and line of the last occurring error.
Q: Which character do the error_reporting directive use to represent the logical operator NOT?
A./
B.!
C.~
D. ^
Correct Option: CExplanation: The twidle (~) character is used to represent the logical operator NOT.
Q: Which logging option
A.LOG_CONS
B.LOG_NDELAY
C.LOG_ODELAY
D.LOG_PERROR
Correct Option: AExplanation: LOG_CONS
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: 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: Which of the following statements causes PHP to disregard repeated error messages that occur within the same file and on the same line?