15 OOP and Classes questions from the C++ bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
B.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
C.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
D.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
Answer + AI explanation with Pro
2. Which term means: "a member function whose call is resolved at run time based on the dynamic type of the object through the vtable"?
Junior
A.virtual destructor
B.virtual function
C.Abstract class
D.override specifier
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.virtual function — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
B.virtual function — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
C.virtual function — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
D.virtual function — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
Answer + AI explanation with Pro
4. What is virtual destructor?
Mid
A.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
B.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
C.a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
D.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
Answer + AI explanation with Pro
5. Which term means: "a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object"?
Mid
A.virtual destructor
B.Abstract class
C.Object slicing
D.virtual function
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.virtual destructor — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
B.virtual destructor — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
C.virtual destructor — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
D.virtual destructor — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
Answer + AI explanation with Pro
7. What is override specifier?
Mid
A.a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
B.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
C.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
D.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
Answer + AI explanation with Pro
8. Which term means: "a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists"?
Mid
A.virtual destructor
B.Abstract class
C.virtual function
D.override specifier
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.override specifier — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
B.override specifier — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
C.override specifier — a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
D.override specifier — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
Answer + AI explanation with Pro
10. What is Abstract class?
Mid
A.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
B.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
C.a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
D.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
Answer + AI explanation with Pro
11. Which term means: "a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base"?
Mid
A.Abstract class
B.virtual destructor
C.virtual function
D.override specifier
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Abstract class — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
B.Abstract class — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
C.Abstract class — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
D.Abstract class — a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
Answer + AI explanation with Pro
13. What is Object slicing?
Senior
A.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
B.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
C.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
D.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
Answer + AI explanation with Pro
14. Which term means: "the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value"?
Senior
A.Abstract class
B.Object slicing
C.virtual destructor
D.override specifier
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Object slicing — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
B.Object slicing — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
C.Object slicing — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
D.Object slicing — a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every OOP and Classes question come with Pro.