--:--









Quiz for Concepts of inheritance and types of inheritance hierarchical

Course: C++ Language | Subject: Unit 6 | Topic: Inheritance



Logo

Q1: What is hierarchical inheritance?

Logo

Q2: Which of the following best represents hierarchical inheritance?

Logo

Q3: In hierarchical inheritance, how many base classes are involved?

Logo

Q4: Which keyword specifies inheritance access in C++?

Logo

Q5: How does hierarchical inheritance affect code reusability?

Logo

Q6: In hierarchical inheritance, can derived classes have additional members?

Logo

Q7: Which of the following is a disadvantage of hierarchical inheritance?

Logo

Q8: Can hierarchical inheritance lead to ambiguity?

Logo

Q9: What happens if a base class destructor is virtual in hierarchical inheritance?

Logo

Q10: How are constructors called in hierarchical inheritance?

Logo

Q11: Can a derived class override base class functions in hierarchical inheritance?

Logo

Q12: Which of the following is true for member access in hierarchical inheritance?

Logo

Q13: What does hierarchical inheritance help achieve in OOP?

Logo

Q14: In hierarchical inheritance, can multiple derived classes override the same base method differently?

Logo

Q15: Is multiple inheritance involved in hierarchical inheritance?

Logo

Q16: Which of these keywords is used to prevent inheritance in C++?

Logo

Q17: Which inheritance type best supports polymorphism?

Logo

Q18: What happens if a derived class does not implement a base class virtual function?

Logo

Q19: How do you access a hidden base class member in derived class?

Are you ready to start test? Set your time limit