Delegates Questions and Answers

Practice Mode
Showing 10 of 32 questions
Q31
What is contravariance in delegates?
  • A Returning more general types
  • B Accepting more general parameters
  • C Handling void return types
  • D Working with value types only
Answer: Option B
Explanation: Contravariance allows a delegate to accept a less derived parameter than specified in its signature.
Q32
Which method is used to invoke a delegate asynchronously?
  • A InvokeAsync
  • B BeginInvoke
  • C StartAsync
  • D ExecuteAsync
Answer: Option B
Explanation: BeginInvoke method is used for asynchronous delegate invocation.
Questions and Answers for Competitive Exams Various Entrance Test