Which of the following options can catch exceptions and try to fix the problem, report it, or ignore
it?
A.
Event handler
B.
Managed handler
C.
Exception handler
D.
Exception Handler Event
Explanation:
An exception handler can catch exceptions and try to fix the problem, report it, or ignore it. An
exception handler is an element. During the execution of the protected node if the specified
exception occurs, an exception handler specifies a body to execute. The set of execution handlers on
the action is examined for a handler that matches the exception when an exception occurs during
the execution of an action. A handler is set to be matched if the type of the exception is the same as
or a descendant of one of the exception classifiers specified in the handler.
Answer A is incorrect. An event handler is a course of action in program code and it is performed
when an event occurs. Therefore, when an event is raised, the code within the event handler is
executed. In order to handle an event, the event handler provides two parameters. The first
parameter passes a reference to the object that raised the event, and the second parameter passes
an object specific to the event that is being handled by the event handler. Event handlers can be
created using the Windows Forms Designer as well as during runtime.
Answer B is incorrect. A managed handler enables a user to call a .NET library to process a request.
When a managed handler is added for a specific application, it works properly using .NET Libraries.
For security reasons, it should always be kept in mind to make this handler available only to the Web
application that requires it. This reduces the possibility of any unauthorized access or other types of
attacks.
Answer D is incorrect. Exception Handler Event is an invalid option and does not exist.