Delegates Questions
Practice Delegates MCQs with answers and explanations. Page 1 of 1.
Category
C# Programming
Topic
Delegates
Page
1 / 1
Mode
Practice
Questions
Open any question to view the answer and explanation.
C#.NET — About the delegate declaration below, which statements are correct?
delegate void del(int i);
Consider:
1) Declaring the delegate creates a class named del.
2) The signature of del need not match the method's signature.
3) The generated del class derives from MulticastDelegate.
4) The method invoked by del must not be static.
5) The del class contains a one-argument constructor and an Invoke() method.
Open
View answer
C#.NET — Delegates: In which of the following areas are delegates most commonly used?
Remoting
Serialization
File Input/Output
Multithreading
Event handling
Open
View answer
C#.NET — Delegates: Identify the incorrect statement.
Open
View answer
C#.NET — Which of the following is a necessary condition for implementing delegates?
Open
View answer
C#.NET — Correct delegate call: Identify the correct way to invoke MyFun() in class Sample.
class Sample
{
public void MyFun(int i, float j)
{
Console.WriteLine("Welcome to CuriousTab !");
}
}
Open
View answer
C#.NET delegates — Which of the following statements are correct?
Open
View answer
Generics in C#.NET — For a generic class SortObjects that must compare any type (int, float, byte, etc.), which construct should be used to implement the comparison function cleanly and type-safely?
Open
View answer
C#.NET delegates — Which statement is incorrect about a delegate?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.