Professional Documents
Culture Documents
MCQ Oops Features
MCQ Oops Features
1. True/False: A class can serve as base class for many derived classes.
Answer: True
2. When a class serves as base class for many derived classes, the situation is called:
1. polymorphism
2. hierarchical inheritance
3. hybrid inheritance
4. multipath inheritance
5. none of these
Answer: (b)
3. When two or more classes serve as base class for a derived class, the situation is known
as __________.
1. multiple inheritance
2. polymorphism
3. encapsulation
4. hierarchical inheritance
5. none of these
Answer: (a)
4. Multiple inheritance leaves room for a derived class to have _______ members.
1. dynamic
2. private
3. public
4. ambiguous
5. none of these
Answer: (d)
Answer: (d)
Answer: (b)
7. True/False: Relationship between class polygon and class point can be described as has–a
relationship.
Answer: True
8. True/False: Relationship between class Manager and class Employee can be described as
is–a relationship.
Answer: True
Answer: (b)