interfaces c programming questions
11. Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods […]
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,
6. If a class called Point is present in namespace n1 as well as in namespace n2, then which of
1. If a namespace is present in a library then which of the following is the correct way to use
16. Which of the folowing does an indexer allow to index in the same way as an array? A class
11. If Sample class has a Length property with get accessor then which of the following statements will work correctly?
6. If Sample class has a Length property with get and set accessors then which of the following statements will
16. Which of the following statements is correct about an enum used in C#.NET? A. enum is a reference
16. Which of the following statements is correct about an enum used in C#.NET? A. enum is a reference
11. Which of the following CANNOT be used as an underlying datatype for an enum in C#.NET? A. byte
6. Which of the following will be the correct output for the C#.NET code snippet given below? enum color :
1. Which of the following statements are correct about an enum used inC#.NET? By default the first enumerator has the
16. Which of the following are true about classes and struct? A class is a reference type, whereas a struct
11. When would a structure variable get destroyed? A. When no reference refers to it, it will get garbage