Q.1.
Choose the correct way to call subroutine fun() of the sample class? class a{ public void x(int p, double k) { Console.WriteLine("k : csharp!"); }}
Q.2.
Which of the following is the correct way to call the function abc() of the given class in the following C# code? delegate void del(int i); x s = new x(); del d = new del(ref s.x); d(2.2f);
Q.3.
Which of the following is the correct way to call the subroutine function abc() of the given class in the following C# code? delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(2.2f);
Q.4.
What will be the output of the following C# code snippet? x s = new x(); delegate void d = new del(ref x); d(2.2f);
Q.5.
What will be the output of the following C# code snippet? class csharp{ public int abc(int a) { Console.WriteLine("A:Just do it!"); return }}
Q.6.
Choose the statements which makes delegate in C#.NET different from a normal class?
Q.7.
Which of the following are the correct statements about delegates?
Q.8.
What will be the output of the following C# code? delegate void del(int a); csharp s = new csharp(); del d = new del(ref s.abc); d(10);
Q.9.
Incorrect statements about delegates are?
Q.10.
Select the modifiers which control the accessibility of the delegate?