Exercise: Delegates

Questions for: Delegates

Which of the following is the necessary condition for implementing delegates?
A:
Class declaration
B:
Inheritance
C:
Run-time Polymorphism
D:
Exceptions
Answer: A
No answer description is available. Let's discuss.
In which of the following areas are delegates commonly used?
  1. Remoting
  2. Serialization
  3. File Input/Output
  4. Multithreading
  5. Event handling
A:
1 and 2 only
B:
1 and 5 only
C:
1, 2 and 3 only
D:
4 and 5 only
Answer: D
No answer description is available. Let's discuss.
Which of the following statements is incorrect about delegate?
A:
Delegates are reference types.
B:
Delegates are object oriented.
C:
Delegates are type-safe.
D:
Delegates serve the same purpose as function pointers in C and pointers to member function operators in C++.
Answer: E
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz