1. | Which of the following statements is correct about the C#.NET program given below? namespace IndiabixConsoleApplication |
|||||||||
Answer: Option E Explanation: No answer description available for this question. Let us discuss.
|
2. | Assume class B is inherited from class A. Which of the following statements is correct about construction of an object of class B? |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
3. | Which of the following statements are correct about Inheritance in C#.NET? 1 A derived class object contains all the base class data. 2 Inheritance cannot suppress the base class functionality. 3 A derived class may not be able to access all the base class data. 4 Inheritance cannot extend the base class functionality. 5 In inheritance chain construction of object happens from base towards derived.
|
|||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
4. | How can you prevent inheritance from a class in C#.NET ?
|
|||||||||
Answer: Option C Explanation: C#.NET allows sealed attribute to be used as a part of class statement. Classes declared with sealed keyword cannot be used as based class for other classes. Most important reason to do this world be to prevent behavior of a class to be changed in any way.
|
5. | Which of the following should be used to implement a 'Like a' or a 'Kind of' relationship between two entities?
|
|||||||||
Answer: Option E Explanation: No answer description available for this question. Let us discuss.
|
6. | Which of the following are reuse mechanisms available in C#.NET? 1 Inheritance 2 Encapsulation 3 Templates 4 Containership 5 Polymorphism |
|||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
7. | In an inheritance chain which of the following members of base class are accessible to the derived class members? 1 static 2 protected 3 private 4 shared 5 public |
|||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
8. | Which of the following is correct about the C#.NET snippet given below? namespace IndiabixConsoleApplication |
|||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|