PrepAway - Latest Free Exam Questions & Answers

What should you do to achieve the goal by using minimum development effort?

You are creating a Windows application by using the .NET Framework 3.5. The application uses multiple threads. You need to ensure that any exceptions that occur while executing the application are reported to the common exception handler. You want to achieve the goal by using minimum development effort. What should you
do?

PrepAway - Latest Free Exam Questions & Answers

A.
Place a TRY CATCH statement around every method in the application.Report any exceptions to the common handler.

B.
Place a TRY CATCH statement inside the Form_Load event in the main form, and report any exceptions to the common handler.Handle the Application.ThreadExit event, and report any exceptions to the common handler.

C.
Place a TRY CATCH statement around the call to the Application.Run method, and report any exceptions to the common handler.Handle the Application.ThreadException event, and report any exceptions to the common handler.

D.
Place a TRY CATCH statement around every call to the System.Threading.Thread.Start method in the application.Report any System.Threading.Thread.ThreadStateException to the common handler.


Leave a Reply