

MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming Using C++ knowledge and support exam preparation. Choose a topic below to get started.
1. |
Instance of which type of class can t be created? |
A. | Anonymous class |
B. | Nested class |
C. | Parent class |
D. | Abstract class |
Answer» E. | |
2. |
Which among the following is false, for a member function of a class? |
A. | All member functions must be defined |
B. | Member functions can be defined inside or outside the class body |
C. | Member functions need not be declared inside the class definition |
D. | Member functions can be made friend to another class using the friend keyword |
Answer» D. Member functions can be made friend to another class using the friend keyword | |
3. |
Class with main() function can be inherited. |
A. | True |
B. | False |
Answer» B. False | |
4. |
What is the scope of a class nested inside another class? |
A. | Protected scope |
B. | Private scope |
C. | Global scope |
D. | Depends on access specifier and inheritance used |
Answer» E. | |
5. |
Size of a class is _____________ |
A. | Sum of the size of all the variables declared inside the class |
B. | Sum of the size of all the variables along with inherited variables in the class |
C. | Size of the largest size of variable |
D. | Classes doesn t have any size |
Answer» E. | |
6. |
Which is known as a generic class? |
A. | Abstract class |
B. | Final class |
C. | Template class |
D. | Efficient Code |
Answer» D. Efficient Code | |