39 OOP · Abstraction Mechanisms questions from the Computer Science Fundamentals bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Sign up free to see every answer with its explanation and ask the AI tutor.
A.an implicit pointer inside a non-static method referring to the object on which it was called
B.a class-level member shared by all objects rather than stored per instance
C.a virtual method declared with = 0 that forces derived classes to provide an implementation
D.a special method that runs when an object is created to initialize its state
Answer + AI explanation with a free account
2. Which term means: "a special method that runs when an object is created to initialize its state"?
Junior
A.public access modifier
B.this pointer
C.friend function
D.constructor
Answer + AI explanation with a free account
3. Which statement is correct?
Junior
A.constructor — a visibility level making a member accessible from anywhere outside the class
B.constructor — a virtual method declared with = 0 that forces derived classes to provide an implementation
C.constructor — an implicit pointer inside a non-static method referring to the object on which it was called
D.constructor — a special method that runs when an object is created to initialize its state
Answer + AI explanation with a free account
4. What is destructor?
Junior
A.an implicit pointer inside a non-static method referring to the object on which it was called
B.a non-member function granted access to the private and protected members of a class
C.a visibility level allowing access within the class and its derived classes
D.a special method that runs when an object is destroyed to release its resources
Answer + AI explanation with a free account
5. Which term means: "a special method that runs when an object is destroyed to release its resources"?
Junior
A.abstract class
B.abstract class vs interface
C.destructor
D.pure virtual function
Answer + AI explanation with a free account
6. Which statement is correct?
Junior
A.destructor — a special method that runs when an object is destroyed to release its resources
B.destructor — an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
C.destructor — a visibility level allowing access within the class and its derived classes
D.destructor — a constructor that initializes a new object as a copy of an existing object of the same class
Answer + AI explanation with a free account
7. What is public access modifier?
Junior
A.a visibility level restricting a member to access only within its own class
B.a visibility level making a member accessible from anywhere outside the class
C.a virtual method declared with = 0 that forces derived classes to provide an implementation
D.a purely abstract contract of method signatures that implementing classes must define
Answer + AI explanation with a free account
8. Which term means: "a visibility level making a member accessible from anywhere outside the class"?
Junior
A.abstract class vs interface
B.public access modifier
C.interface
D.copy constructor
Answer + AI explanation with a free account
9. Which statement is correct?
Junior
A.public access modifier — a non-member function granted access to the private and protected members of a class
B.public access modifier — an implicit pointer inside a non-static method referring to the object on which it was called
C.public access modifier — a visibility level making a member accessible from anywhere outside the class
D.public access modifier — a class that cannot be instantiated and may hold both concrete and unimplemented methods
Answer + AI explanation with a free account
10. What is private access modifier?
Junior
A.a visibility level restricting a member to access only within its own class
B.a purely abstract contract of method signatures that implementing classes must define
C.a visibility level allowing access within the class and its derived classes
D.a visibility level making a member accessible from anywhere outside the class
Answer + AI explanation with a free account
11. Which term means: "a visibility level restricting a member to access only within its own class"?
Junior
A.private access modifier
B.static member
C.abstract class vs interface
D.friend function
Answer + AI explanation with a free account
12. Which statement is correct?
Junior
A.private access modifier — an implicit pointer inside a non-static method referring to the object on which it was called
B.private access modifier — a purely abstract contract of method signatures that implementing classes must define
C.private access modifier — a visibility level restricting a member to access only within its own class
D.private access modifier — a visibility level allowing access within the class and its derived classes
Answer + AI explanation with a free account
13. What is protected access modifier?
Junior
A.a constructor that initializes a new object as a copy of an existing object of the same class
B.a special method that runs when an object is created to initialize its state
C.a visibility level allowing access within the class and its derived classes
D.a class-level member shared by all objects rather than stored per instance
Answer + AI explanation with a free account
14. Which term means: "a visibility level allowing access within the class and its derived classes"?
Junior
A.destructor
B.protected access modifier
C.public access modifier
D.pure virtual function
Answer + AI explanation with a free account
15. Which statement is correct?
Junior
A.protected access modifier — a visibility level allowing access within the class and its derived classes
B.protected access modifier — a class-level member shared by all objects rather than stored per instance
C.protected access modifier — a class that cannot be instantiated and may hold both concrete and unimplemented methods
D.protected access modifier — a non-member function granted access to the private and protected members of a class
Answer + AI explanation with a free account
16. What is abstract class?
Mid
A.an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
B.a visibility level allowing access within the class and its derived classes
C.a non-member function granted access to the private and protected members of a class
D.a class that cannot be instantiated and may hold both concrete and unimplemented methods
Answer + AI explanation with a free account
17. Which term means: "a class that cannot be instantiated and may hold both concrete and unimplemented methods"?
Mid
A.abstract class
B.public access modifier
C.destructor
D.friend function
Answer + AI explanation with a free account
18. Which statement is correct?
Mid
A.abstract class — an implicit pointer inside a non-static method referring to the object on which it was called
B.abstract class — a class that cannot be instantiated and may hold both concrete and unimplemented methods
C.abstract class — a virtual method declared with = 0 that forces derived classes to provide an implementation
D.abstract class — a visibility level allowing access within the class and its derived classes
Answer + AI explanation with a free account
19. What is interface?
Mid
A.a visibility level making a member accessible from anywhere outside the class
B.a virtual method declared with = 0 that forces derived classes to provide an implementation
C.a purely abstract contract of method signatures that implementing classes must define
D.a visibility level restricting a member to access only within its own class
Answer + AI explanation with a free account
20. Which term means: "a purely abstract contract of method signatures that implementing classes must define"?
Mid
A.private access modifier
B.constructor
C.interface
D.abstract class
Answer + AI explanation with a free account
21. Which statement is correct?
Mid
A.interface — a special method that runs when an object is destroyed to release its resources
B.interface — a purely abstract contract of method signatures that implementing classes must define
C.interface — a visibility level restricting a member to access only within its own class
D.interface — a class that cannot be instantiated and may hold both concrete and unimplemented methods
Answer + AI explanation with a free account
22. What is pure virtual function?
Mid
A.a special method that runs when an object is destroyed to release its resources
B.a virtual method declared with = 0 that forces derived classes to provide an implementation
C.an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
D.a non-member function granted access to the private and protected members of a class
Answer + AI explanation with a free account
23. Which term means: "a virtual method declared with = 0 that forces derived classes to provide an implementation"?
Mid
A.protected access modifier
B.static member
C.pure virtual function
D.public access modifier
Answer + AI explanation with a free account
24. Which statement is correct?
Mid
A.pure virtual function — a virtual method declared with = 0 that forces derived classes to provide an implementation
B.pure virtual function — a constructor that initializes a new object as a copy of an existing object of the same class
C.pure virtual function — a purely abstract contract of method signatures that implementing classes must define
D.pure virtual function — a visibility level making a member accessible from anywhere outside the class
Answer + AI explanation with a free account
25. What is copy constructor?
Mid
A.a class-level member shared by all objects rather than stored per instance
B.a visibility level restricting a member to access only within its own class
C.a constructor that initializes a new object as a copy of an existing object of the same class
D.a visibility level making a member accessible from anywhere outside the class
Answer + AI explanation with a free account
26. Which term means: "a constructor that initializes a new object as a copy of an existing object of the same class"?
Mid
A.interface
B.this pointer
C.copy constructor
D.pure virtual function
Answer + AI explanation with a free account
27. Which statement is correct?
Mid
A.copy constructor — a constructor that initializes a new object as a copy of an existing object of the same class
B.copy constructor — an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
C.copy constructor — an implicit pointer inside a non-static method referring to the object on which it was called
D.copy constructor — a purely abstract contract of method signatures that implementing classes must define
Answer + AI explanation with a free account
28. What is static member?
Mid
A.an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
B.a virtual method declared with = 0 that forces derived classes to provide an implementation
C.a class-level member shared by all objects rather than stored per instance
D.a visibility level making a member accessible from anywhere outside the class
Answer + AI explanation with a free account
29. Which term means: "a class-level member shared by all objects rather than stored per instance"?
Mid
A.static member
B.constructor
C.protected access modifier
D.interface
Answer + AI explanation with a free account
30. Which statement is correct?
Mid
A.static member — a special method that runs when an object is created to initialize its state
B.static member — a visibility level allowing access within the class and its derived classes
C.static member — a class-level member shared by all objects rather than stored per instance
D.static member — an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
Answer + AI explanation with a free account
Showing 30 of 39 OOP · Abstraction Mechanisms questions — the full set, with answers, explanations and an AI tutor on every question, is inside.
Free to start
Answers, AI explanations, and a free readiness check
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.