My Report

Object Oriented Programming Practice Test 9


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 constructor definition will produce a compile time error?

2. If a function have all the default arguments but still some values are passed to the function then ______________

3. How does compiler decide the intended object to be used, if more than one object are used?

4. Which among the following is true?

5. Which is the correct syntax to call a member function using pointer?

6. If a pointer to an object is created and the object gets deleted without using the pointer then __________

7. If class C inherits class B and class B inherits class A ________________

8. Which syntax doesn’t execute/is false when executed?

9. Which is the correct interpretation of the member function call from an object, object.function(parameter);

10. If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?


 

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.