My Report

Object Oriented Programming Practice Test 5


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. Which among the following is correct for a hierarchical inheritance?

2. Always the base class constructors are called ___________ constructor of derived class.

3. Can default arguments be used with the template class?

4. If a base class is inherited in protected access mode then which among the following is true?

5. Abstract class can’t be final in java.

6. If a base class is added with a few new members, its subclass must also be modified.

7. If class A and class B are derived from class C and class D, then ________________

8. If single inheritance is used, program will contain ________________

9. How many types of inheritance are possible in C++?

10. What if static members are declared inside template classes?


 

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.