C# Delegates and Events Interview Questions and Answers - 1
Question: 1
Define delegate?
Delegate is an object that can refer to a method.
Delegate contains details about method rather than data.
It is used for two purposes; they are call back and event handling.
It can be used to hold reference to a method of any class.
Question: 2
What are event handlers?
A method that handles an event is called an event handler. The event handlers return void and take two objects.
The first parameter is the object raised the event.
The second parameter is an object derived from Event Args class.
Question: 3
What are called combinable delegates?
It is possible for certain delegates to hold and invoke multiple methods.
It is called as multicast delegates, also known as combinable delegates.
Question: 4
What is a delegate method?
The methods whose references are encapsulated in to a delegate instance are known as delegate methods or callable entities.
Question: 5
What is an event?
An Event is essentially an automatic notification that some action has occurred.
Events are members of a class and declared using the event keyword.
1000+ Verbal Reasoning Test with Answers Pdf More
1000+ Classification Quiz Non Verbal Reasoning Questions Pdf More
1000+ Computer MCQ Questions for Competitive Exams Pdf More
Non Verbal Reasoning Questions and Answers for Bank Exams More
tnpsc vao chemistry question paper with answers More
100+ Statement and Course of Action Reasoning Tips & Tricks More
History Multiple Choice Questions and Answers More
1000+ Software Testing Interview Questions for Freshers Pdf More
Top 1000+ Information Technology Quiz Questions and Answers More
General Knowledge Questions with Answers 2020-2021 More