MCQOPTIONS
Saved Bookmarks
This section includes 18 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Deriving a class in such a way that that the base class members are not available for further inheritance is known as ___________________ |
| A. | Public inheritance |
| B. | Protected inheritance |
| C. | Protected or private inheritance |
| D. | Private inheritance |
| Answer» E. | |
| 2. |
Which feature is not related to the derived classes among the following? |
| A. | Inheritance |
| B. | Encapsulation |
| C. | Run time memory management |
| D. | Compile time function references |
| Answer» D. Compile time function references | |
| 3. |
The members of a derived class can never be derived. |
| A. | True |
| B. | False |
| Answer» C. | |
| 4. |
How many classes can be derived from a derived class? |
| A. | Only 1 |
| B. | At most 1 |
| C. | At least 1 |
| D. | As many as required |
| Answer» E. | |
| 5. |
If base class is an abstract class then derived class ______________ the undefined functions. |
| A. | Must define |
| B. | Must become another abstract class or define |
| C. | Must become parent class for |
| D. | Must implement 2 definitions of |
| Answer» C. Must become parent class for | |
| 6. |
If class A is derived from another derived class B which is derived from class C, which class will have maximum level of abstraction? |
| A. | Class A |
| B. | Class B |
| C. | Class C |
| D. | All have the same level of abstraction |
| Answer» D. All have the same level of abstraction | |
| 7. |
Derived class is also known as ______________ class. |
| A. | Subclass |
| B. | Small class |
| C. | Big class |
| D. | Noticeable class |
| Answer» B. Small class | |
| 8. |
If a class is being derived using more than two base classes, which inheritance will be used? |
| A. | Single |
| B. | Multi-level |
| C. | Hierarchical |
| D. | Multiple |
| Answer» E. | |
| 9. |
How many derived class can a single base class have? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | As many are required |
| Answer» E. | |
| 10. |
How many types of inheritance are supported in C++ for deriving a class? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» D. 4 | |
| 11. |
Which members can never be accessed in derived class from the base class? |
| A. | Private |
| B. | Protected |
| C. | Public |
| D. | All except private |
| Answer» E. | |
| 12. |
If there is a derived class in a program, how many classes must be in that program? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» C. 3 | |
| 13. |
Which among the following is inherited by a derived class from base class? |
| A. | Data members only |
| B. | Member functions only |
| C. | All the members except private members |
| D. | All the members of base class |
| Answer» D. All the members of base class | |
| 14. |
Which among the following is best definition of a derived class? |
| A. | A child class |
| B. | A class which inherits one or more classes |
| C. | A class with keyword derived |
| D. | A class with more than one constructor |
| Answer» C. A class with keyword derived | |
| 15. |
DERIVED_CLASS_IS_ALSO_KNOWN_AS________________CLASS.?$ |
| A. | Subclass |
| B. | Small class |
| C. | Big class |
| D. | Noticeable class |
| Answer» B. Small class | |
| 16. |
If base class is an abstract class then derived class ______________ the undefined functions.$ |
| A. | Must define |
| B. | Must become another abstract class or define |
| C. | Must become parent class for |
| D. | Must implement 2 definitions of |
| Answer» C. Must become parent class for | |
| 17. |
If_class_A_is_derived_from_another_derived_class_B_which_is_derived_from_class_C,_which_class_will_have_maximum_level_of_abstraction?$ |
| A. | Class A |
| B. | Class B |
| C. | Class C |
| D. | All have same level of abstraction |
| Answer» D. All have same level of abstraction | |
| 18. |
How_many_classes_can_be_derived_from_a_derived_class? |
| A. | Only 1 |
| B. | At most 1 |
| C. | At least 1 |
| D. | As many as required |
| Answer» E. | |