41.
Choose the incorrect statement about delegates?

44.
Which of the following is the correct way to call the subroutine function abc() of the given class in the following C# code?
class csharp
{
    void abc()
    {
        console.writeline("A:Just do it!");
    }
}

csharp c = new csharp();
delegate void d = new del(ref abc);
d();

delegate void del();
del d;
csharp s = new csharp();
d = new del(ref s.abc);
d();

   csharp s = new csharp();
   delegate void del = new delegate(ref abc);
   del();

45.
Which among the following is the correct statement about delegate declaration?
delegate void del(int i);

47.
What will be the output of the following C# code snippet?
public class Generic<T>
{
    Stack<T> stk = new Stack<T>();
    public void push(T obj)
    {
        stk.Push(obj);
    }
    public T pop()
    {
        T obj = stk.Pop();
        return obj;
    }
}
class Program
{
    static void Main(string[] args)
    {
        Generic<string> g = new Generic<string>();
        g.push(30);
        Console.WriteLine(g.pop());
        Console.ReadLine();
    }
}

48.
Which of the given statements are valid about generics in .NET Framework?

49.
Which of the following statements are valid in the following C# code snippet?
public class Generic<T>
{
    public T Field;
    public void testSub()
    {
        T i = Field + 1;
    }
}
class Program
{
    static void Main(string[] args)
    {
        Genericlt;int>g = new Genericlt;int>();
        g.testSub();
    }
}

50.
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!");
    }
}

delegate void del(int i);
x s = new x();
del d = new del(ref s.x);
d(8, 2.2f);

delegate void del(int p,  double k);
del d;
x s = new x();
d = new del(ref s.x);
d(8, 2.2f);

x s = new x();
delegate void d = new del(ref x);
d(8, 2.2f);