nerdexam
Zend

ZF-100-500 · Question #18

In which of the following situations will you use the set_exception_handler() function?

The correct answer is B. When the try/catch block is unable to catch an exception. See the full explanation below for the reasoning.

Question

In which of the following situations will you use the set_exception_handler() function?

Options

  • AWhen you want to restore a previously defined exception handler function.
  • BWhen the try/catch block is unable to catch an exception.
  • CWhen you want to set a user -defined function to handle errors.
  • DWhen you want to generate a user -level error/warning/notice message.

How the community answered

(40 responses)
  • A
    15% (6)
  • B
    78% (31)
  • C
    3% (1)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full ZF-100-500 Practice