9. | Which of the following statements are correct? 1 Data members ofa class are by default public. 2 Data members of a class are by default private. 3 Member functions of a class are by default public. 4 A private function of a class can access a public function within the same class. 5 Member function of a class are by default private.
|
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
10. | The this reference gets created when a member function (non-shared) of a class is called.
|
|||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
11. | Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
12. | Which of the following is the correct way to create an object of the class Sample? 1 Sample s = new Sample(); 2 Sample s; 3 Sample s; s = new Sample(); 4 s = new Sample(); |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
13. | Which of the following statements is correct? |
|||||||||
Answer: Option D Explanation: No answer description available for this question. Let us discuss.
|
14. | Which of the following statements are correct? 1 Instance members of a class can be accessed only through an object of that class. 2 A class can contain only instance data and instance member function. 3 All objects created from a class will occupy equal number of bytes in memory. 4 A class can contain Friend functions. 5 A class is a blueprint or a template according to which objects are created.
|
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
15. | Which of the following statements is correct about the C#.NET code snippet given below? class Sample |
|||||||||
Answer: Option E Explanation: No answer description available for this question. Let us discuss.
|
16. | Which of the following statements is correct about the C#.NET code snippet given below? class Student s1, s2; // Here 'Student' is a user-defined class. |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|