Delegates Questions and Answers

Take Exam

Delegates in C# are powerful constructs that allow methods to be passed as parameters, forming the foundation for event handling and lambda expressions. This section contains C# programming questions and answers focusing on delegate declaration, invocation, and multicast behavior. These C# delegates questions with answers are commonly asked in Infosys, TCS, and Capgemini technical interviews. Understanding delegates enhances your grasp of advanced C# features like events and asynchronous programming, which are key to writing flexible, maintainable applications.

Delegates

Showing 10 of 32 questions

31. What is contravariance in delegates?

  • Returning more general types
  • Accepting more general parameters
  • Handling void return types
  • Working with value types only
Show Answer Report

32. Which method is used to invoke a delegate asynchronously?

  • InvokeAsync
  • BeginInvoke
  • StartAsync
  • ExecuteAsync
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test