In C#, which delegate type is used to represent methods that take multiple parameters and return a value?
Select an option to see the answer and solution.
What is a multicast delegate in C#?
Select an option to see the answer and solution.
What is the purpose of the Remove method associated with events in C#?
Select an option to see the answer and solution.
In C#, which access modifier is commonly used for events that allow only the defining class to raise them?
Select an option to see the answer and solution.
What is the purpose of the Delegate.Combine method in C#?
Select an option to see the answer and solution.
What is the purpose of the EventHandler delegate in C#?
Select an option to see the answer and solution.
What is the purpose of the EventInfo.GetAddMethod method in C#?
Select an option to see the answer and solution.
In C#, what is the purpose of the BeginInvoke and EndInvoke methods associated with delegates?
Select an option to see the answer and solution.
What does the following C# code set defines?
public Gen(T o)
{
ob = o;
}
Select an option to see the answer and solution.
To implement delegates, the necessary condition is?
Select an option to see the answer and solution.
Which among the following differentiates a delegate in C#.NET from a conventional function pointer in other languages?
Select an option to see the answer and solution.
To generate a simple notification for an object in runtime, the programming construct to be used for implementing this idea?
Select an option to see the answer and solution.
Which of the following is a valid statement about generic procedures in C#.NET are?
Select an option to see the answer and solution.
What is meant by the term generics?
Select an option to see the answer and solution.
In the following C# code, which of the following statement is not correct?
public class MyContainer<T> where T: class, IComparable
{
/* insert code here */
}
Select an option to see the answer and solution.
Which of the following statements is correct about a delegate?
Select an option to see the answer and solution.
What will be the output of the following C# code snippet?
{
delegate void A(ref string str);
class sample
{
public static void fun( ref string a)
{
a = a.Substring( 7, a.Length - 7);
}
}
class Program
{
static void Main(string[] args)
{
A str1;
string str = "Test Your C#.net skills";
str1 = sample.fun;
str1(ref str);
Console.WriteLine(str);
}
}
}
Select an option to see the answer and solution.
The 'ref' keyword can be used with which among the following?
Select an option to see the answer and solution.
Select the type argument of an open constructed type?
Select an option to see the answer and solution.
Select the modifiers which control the accessibility of the delegate?
Select an option to see the answer and solution.