generics c programming questions
6. For the code snippet given below, which of the following statements is valid? public class Generic<T> { public T […]
6. For the code snippet given below, which of the following statements is valid? public class Generic<T> { public T […]
1. Which one of the following classes are present System.Collections.Generic namespace? Stack Tree SortedDictionary SortedArray A. 1 and 2
11. Which of the following CANNOT be a target for a custom attribute? A. Enum B. Event C.
6. Which of the following statements are correct about Attributes used in C#.NET? A. If there is a custom
1. The [Serializable()] attribute gets inspected at A. Compile-time B. Run-time C. Design-time D. Linking-time E.
11. Suppose on pushing a button an object is to be notified, but it is not known until runtime which
6. Which of the following is the correct way to call subroutine MyFun() of the Sample class given below? class
1. Which of the following statements is incorrect about delegate? A. Delegates are reference types. B. Delegates are
16. Which of the following statements are correct about the Collection Classes available in Framework Class Library? A. Elements
11. Suppose value of the Capacity property of ArrayList Collection is set to 4. What will be the capacity of
6. Which of the following statements are correct about the C#.NET code snippet given below? Stack st = new Stack();
1. Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? The ArrayList class
11. Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods
6. Which of the following statements is correct about an interface used in C#.NET? A. If a class implements
1. Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1();
16. Which of the following are necessary for Run-time Polymorphism? The overridden base method must be virtual, abstract or override.
11. Which of the following operators cannot be overloaded? true false new ~ sizeof A. 1, 3 B.
6. Which of the followings is the correct way to overload + operator? A. public sample operator + ( sample
1. Which of the following unary operators can be overloaded? true false + new is A. 1, 2, 3
16. Which of the following is NOT an Exception? A. StackOverflow B. Division By Zero C. Insufficient
11. Which of the following statements are correct about exception handling in C#.NET? try blocks cannot be nested. In one
6. Which of the following statements are correct about exception handling in C#.NET? If our program does not catch an
6. Which of the following statements are correct about exception handling in C#.NET? If our program does not catch an
1. Which of the following is NOT a .NET Exception class? A. Exception B. StackMemoryException C. DivideByZeroException
11. Which of the following statements are correct about a namespace used in C#.NET? Classes must belong to a namespace,