nerdexam
Microsoft

98-361 · Question #332

You are assisting your colleague in solving a compiler error that his code is throwing. Following is the problematic portion of his code: try { bool success = ApplyPicardoRotation(100, 0); //…

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

Question

You are assisting your colleague in solving a compiler error that his code is throwing. Following is the problematic portion of his code:

try { bool success = ApplyPicardoRotation(100, 0); // additional code lines here } catch(DivideByZeroException dbze) { //exception handling code } catch(NotFiniteNumberException nfne) { //exception handling code } catch(ArithmeticException ae) { //exception handling code } catch(OverflowException oe) { //exception handling code } To remove the compilation error, which of the following ways should you suggest to rearrange the code?

Options

  • Atry
  • Btry
  • Ctry
  • Dtry

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    81% (30)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice