Delegates And Events In C Sharp - Study Mode

[#1] In C#, which keyword is used to remove an event handler from an event?
Correct Answer

(A) -=

[#2] What is the purpose of the GetInvocationList() method associated with delegates in C#?
Correct Answer

(D) Retrieves an array of delegates bound to the current delegate

[#3] What is a callback function in the context of delegates and events in C#?
Correct Answer

(D) A function that is called to handle an event

[#4] In C#, which delegate type is used to represent methods that do not return a value and do not take any parameters?
Correct Answer

(C) Action

[#5] What is the purpose of the Invoke() method associated with delegates in C#?
Correct Answer

(B) Invokes the delegate's method