My Report

Object Oriented Programming Practice Test 6


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Is it compulsory to have constructor for all the classes involved in multiple inheritance?

2. How many abstract classes can be used in multilevel inheritance?

3. Which Class is having highest degree of abstraction in multilevel inheritance of 5 levels?

4. It is ____________________ to define the abstract functions.

5. The abstract methods can never be ___________ in a base class.

6. If a function declared as abstract in base class doesn’t have to be defined in derived class then ______

7. How many base classes can a derived class have which is implementing multiple inheritance?

8. Which is a must condition for virtual function to achieve runtime polymorphism?

9. If class A inherits class B and class C as “class A: public class B, public class C {// class body ;}; ”, which class constructor will be called first?

10. In multilevel inheritance one class inherits _______________


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.