

MCQOPTIONS
Saved Bookmarks
This section includes 4 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. |
Members which are not intended to be inherited are declared as ________________ |
A. | Public members |
B. | Protected members |
C. | Private members |
D. | Private or Protected members |
Answer» D. Private or Protected members | |
2. |
Which access type data gets derived as private member in derived class? |
A. | Private |
B. | Public |
C. | Protected |
D. | Protected and Private |
Answer» B. Public | |
3. |
Which among the following is correct for a hierarchical inheritance? |
A. | Two base classes can be used to be derived into one single class |
B. | Two or more classes can be derived into one class |
C. | One base class can be derived into other two derived classes or more |
D. | One base class can be derived into only 2 classes |
Answer» D. One base class can be derived into only 2 classes | |
4. |
Which programming language doesn t support multiple inheritance? |
A. | C++ and Java |
B. | C and C++ |
C. | Java and SmallTalk |
D. | Java |
Answer» E. | |