Which code should you insert at line 28?

You have the following code (line numbers are included for reference only):


You need to ensure that if an exception occurs, the exception will be logged.
Which code should you insert at line 28?


A. Option A
B. Option B
C. Option C
D. Option D

microsoft-exams

One thought on “Which code should you insert at line 28?

  1. A is wrong – no event listeners
    C is wrong – “MyAppErrors” event log source might not exist
    D is wrong – there might be not enough permissions to write into thie log

    B is correct

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.