namespaces c programming questions
6. If a class called Point is present in namespace n1 as well as in namespace n2, then which of […]
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
1. The space required for structure variables is allocated on stack. A. True B. False Answer & Explanation
1. The space required for structure variables is allocated on stack. A. True B. False Answer & Explanation
16. Which of the following statements are correct? String is a value type. String literals can contain any character literal
11. Which of the following statements about a String is correct? A. A String is created on the stack.
6. If s1 and s2 are references to two strings, then which of the following is the correct way to
1. Which of the following statements are true about the C#.NET code snippet given below? String s1, s2; s1 =
11. Which of the following statements is correct about the C#.NET code snippet given below? int[] intMyArr = {11, 3,
6. Which of the following is the correct output of the C#.NET code snippet given below? int[ , , ]
1. Which of the following statements are correct about the C#.NET code snippet given below? int[ , ] intMyArr =
11. There is no multiple inheritance in C#.NET. That is, a class cannot be derived from multiple base classes. A.
6. If a base class contains a member function func(), and a derived class does not contain a function with
1. Multiple inheritance is different from multiple levels of inheritance. A. True B. False Answer & Explanation Answer:
11. Which of the following should be used to implement a ‘Like a’ or a ‘Kind of’ relationship between two