MCQs
Total Questions : 19
| Page 2 of 2 pages
Answer: Option C. -> 7
The seven methods are: getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString().
Answer: Option D. -> PHP 5.3
PHP 5.3
Answer: Option B. -> final
Marking a method as final prevents it from being overridden by a subclass.
Answer: Option B. -> throw new Exception();
throw new Exception();
Answer: Option A. -> Returns the message if it is passed to the constructor.
Returns the message if it is passed to the constructor.
Answer: Option A. -> ignore_repeated_errors
ignore_repeated_errors
Answer: Option A. -> LOG_CONS
LOG_CONS
Answer: Option B. -> syslog()
syslog()
Answer: Option D. -> define_syslog_variable()
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.