nerdexam
Microsoft

98-379 · Question #32

You have the following code. (Line numbers are included for reference only.) Which exception must be thrown in order for the test case to pass?

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

Question

You have the following code. (Line numbers are included for reference only.) Which exception must be thrown in order for the test case to pass?

Exhibit

98-379 question #32 exhibit

Options

  • ASystem.Exception
  • BExpectedException
  • CArgumentException
  • DInvalidArgumentException

How the community answered

(49 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    84% (41)
  • D
    10% (5)

Community Discussion

No community discussion yet for this question.

Full 98-379 Practice