nerdexam
Microsoft

98-372 · Question #159

You write a method named DoWork. You need to log all exceptions that occur inside DoWork. You also need to ensure that all exceptions are raised to the calling code. Which code segment should you use?

The correct answer is C. Option C. See the full explanation below for the reasoning.

Question

You write a method named DoWork. You need to log all exceptions that occur inside DoWork. You also need to ensure that all exceptions are raised to the calling code. Which code segment should you use?

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(28 responses)
  • A
    11% (3)
  • B
    4% (1)
  • C
    82% (23)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice