Difficulty: Easy
Correct Answer: Only one method can be called using a delegate.
Explanation:
Introduction / Context:
This question tests fundamental knowledge about delegates in C#. Delegates are central to implementing callbacks and events, and it is important to differentiate their capabilities from older language constructs like function pointers.
Given Data / Assumptions:
Concept / Approach:
The false statement among the options is that only one method can be bound to a delegate. In fact, C# supports multicast delegates, which can call multiple methods in an invocation list.
Step-by-Step Solution:
Verification / Alternative check:
Create a delegate and use += to attach multiple methods. All methods execute in sequence when invoked, proving the incorrectness of option E.
Why Other Options Are Wrong:
All others accurately describe delegates. Only E contradicts the multicast feature.
Common Pitfalls:
Assuming delegates work exactly like C pointers; forgetting multicast behavior.
Final Answer:
Only one method can be called using a delegate.
Discussion & Comments