Microsoft
98-372 · Question #158
Which two types of actions can trigger an event? (Each correct answer presents a complete solution. Choose two.)
The correct answer is A. Declaring the signature of the delegate. D. User intervention, such as a mouse click. A delegate is a type that holds a reference to a method. A delegate is declared with a signature that shows the return type and parameters for the methods it references, and can hold references only to methods that match its signature. - Events in the .NET Framework are based…
Understanding Methods and Events
Question
Which two types of actions can trigger an event? (Each correct answer presents a complete solution. Choose two.)
Options
- ADeclaring the signature of the delegate.
- BSome other program logic, such as a call to the program module,
- CAdding a delegate keyword.
- DUser intervention, such as a mouse click,
How the community answered
(18 responses)- A83% (15)
- B6% (1)
- C11% (2)
Explanation
- A delegate is a type that holds a reference to a method. A delegate is declared with a signature that shows the return type and parameters for the methods it references, and can hold references only to methods that match its signature. - Events in the .NET Framework are based on the delegate model. The delegate model follows the observer design pattern, which enables a subscriber to register with, and receive notifications from, a provider. An event sender pushes a notification that an event has happened, and an event receiver receives that notification and defines a response to it.
Topics
#events#delegates#event triggers#user interaction
Community Discussion
No community discussion yet for this question.