nerdexam
Microsoft

70-491 · Question #7

You place a breakpoint at line MP31 in the app. When you debug the app, the debugger continuously catches a System.UnauthorizedAccess exception. You need to resolve the exception. What should you do?

The correct answer is D. At line PA25, insert the following line of code. See the full explanation below for the reasoning.

Question

You place a breakpoint at line MP31 in the app. When you debug the app, the debugger continuously catches a System.UnauthorizedAccess exception. You need to resolve the exception. What should you do?

Options

  • AWrap lines CE43 through CE46 in a try-catch statement.
  • BAt line MP10, change the code segment to the following line of code.
  • CMove line CE09 to CE16.
  • DAt line PA25, insert the following line of code.

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    11% (4)
  • C
    3% (1)
  • D
    84% (31)

Community Discussion

No community discussion yet for this question.

Full 70-491 Practice