ExamVeda
Login
Home
31
Which among the following differentiates a delegate in C#.NET from a conventional function pointer in other languages?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
32
To generate a simple notification for an object in runtime, the programming construct to be used for implementing this idea?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
33
Which of the following is a valid statement about generic procedures in C#.NET are?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
34
What is meant by the term generics?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
35
In the following C# code, which of the following statement is not correct?
public class MyContainer<T> where T: class, IComparable
{
  /* insert code here */
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
36
Which of the following statements is correct about a delegate?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
37
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);
        }
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
38
The 'ref' keyword can be used with which among the following?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
39
Select the type argument of an open constructed type?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
40
Select the modifiers which control the accessibility of the delegate?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board