My Report

Object Oriented Programming Practice Test 2


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. Destructor calls ________________ (C++)

2. Which among the following is possible way to overload constructor?

3. The copy constructors can be used to ________

4. Copy constructor is a constructor which ________________

5. Which among the following helps to create a temporary instance?

6. Which specifier applies only to the constructors?

7. Which among the following is true for destructors?

8. Choose the correct sequence of destructors being called for the following code.

class A{   };
class B{   };
class C: public A, public B{   };

9. When is the constructor called for an object?

10. What is the sequence of destructors call?


 

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.