OOP · Abstraction Mechanisms interview questions

39 real OOP · Abstraction Mechanisms questions from the Computer Science Fundamentals bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is constructor?

Junior
  1. A.an implicit pointer inside a non-static method referring to the object on which it was called
  2. B.a class-level member shared by all objects rather than stored per instance
  3. C.a virtual method declared with = 0 that forces derived classes to provide an implementation
  4. D.a special method that runs when an object is created to initialize its state
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.constructor — a visibility level making a member accessible from anywhere outside the class
  2. B.constructor — a virtual method declared with = 0 that forces derived classes to provide an implementation
  3. C.constructor — an implicit pointer inside a non-static method referring to the object on which it was called
  4. D.constructor — a special method that runs when an object is created to initialize its state
Reveal the answer + AI explanation — free account

4. What is destructor?

Junior
  1. A.an implicit pointer inside a non-static method referring to the object on which it was called
  2. B.a non-member function granted access to the private and protected members of a class
  3. C.a visibility level allowing access within the class and its derived classes
  4. D.a special method that runs when an object is destroyed to release its resources
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.destructor — a special method that runs when an object is destroyed to release its resources
  2. B.destructor — an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
  3. C.destructor — a visibility level allowing access within the class and its derived classes
  4. D.destructor — a constructor that initializes a new object as a copy of an existing object of the same class
Reveal the answer + AI explanation — free account

7. What is public access modifier?

Junior
  1. A.a visibility level restricting a member to access only within its own class
  2. B.a visibility level making a member accessible from anywhere outside the class
  3. C.a virtual method declared with = 0 that forces derived classes to provide an implementation
  4. D.a purely abstract contract of method signatures that implementing classes must define
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.public access modifier — a non-member function granted access to the private and protected members of a class
  2. B.public access modifier — an implicit pointer inside a non-static method referring to the object on which it was called
  3. C.public access modifier — a visibility level making a member accessible from anywhere outside the class
  4. D.public access modifier — a class that cannot be instantiated and may hold both concrete and unimplemented methods
Reveal the answer + AI explanation — free account

10. What is private access modifier?

Junior
  1. A.a visibility level restricting a member to access only within its own class
  2. B.a purely abstract contract of method signatures that implementing classes must define
  3. C.a visibility level allowing access within the class and its derived classes
  4. D.a visibility level making a member accessible from anywhere outside the class
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.private access modifier — an implicit pointer inside a non-static method referring to the object on which it was called
  2. B.private access modifier — a purely abstract contract of method signatures that implementing classes must define
  3. C.private access modifier — a visibility level restricting a member to access only within its own class
  4. D.private access modifier — a visibility level allowing access within the class and its derived classes
Reveal the answer + AI explanation — free account

13. What is protected access modifier?

Junior
  1. A.a constructor that initializes a new object as a copy of an existing object of the same class
  2. B.a special method that runs when an object is created to initialize its state
  3. C.a visibility level allowing access within the class and its derived classes
  4. D.a class-level member shared by all objects rather than stored per instance
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.protected access modifier — a visibility level allowing access within the class and its derived classes
  2. B.protected access modifier — a class-level member shared by all objects rather than stored per instance
  3. C.protected access modifier — a class that cannot be instantiated and may hold both concrete and unimplemented methods
  4. D.protected access modifier — a non-member function granted access to the private and protected members of a class
Reveal the answer + AI explanation — free account

16. What is abstract class?

Mid
  1. A.an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
  2. B.a visibility level allowing access within the class and its derived classes
  3. C.a non-member function granted access to the private and protected members of a class
  4. D.a class that cannot be instantiated and may hold both concrete and unimplemented methods
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.abstract class — an implicit pointer inside a non-static method referring to the object on which it was called
  2. B.abstract class — a class that cannot be instantiated and may hold both concrete and unimplemented methods
  3. C.abstract class — a virtual method declared with = 0 that forces derived classes to provide an implementation
  4. D.abstract class — a visibility level allowing access within the class and its derived classes
Reveal the answer + AI explanation — free account

19. What is interface?

Mid
  1. A.a visibility level making a member accessible from anywhere outside the class
  2. B.a virtual method declared with = 0 that forces derived classes to provide an implementation
  3. C.a purely abstract contract of method signatures that implementing classes must define
  4. D.a visibility level restricting a member to access only within its own class
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.interface — a special method that runs when an object is destroyed to release its resources
  2. B.interface — a purely abstract contract of method signatures that implementing classes must define
  3. C.interface — a visibility level restricting a member to access only within its own class
  4. D.interface — a class that cannot be instantiated and may hold both concrete and unimplemented methods
Reveal the answer + AI explanation — free account

22. What is pure virtual function?

Mid
  1. A.a special method that runs when an object is destroyed to release its resources
  2. B.a virtual method declared with = 0 that forces derived classes to provide an implementation
  3. C.an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
  4. D.a non-member function granted access to the private and protected members of a class
Reveal the answer + AI explanation — free account

23. Which term means: "a virtual method declared with = 0 that forces derived classes to provide an implementation"?

Mid
  1. A.protected access modifier
  2. B.static member
  3. C.pure virtual function
  4. D.public access modifier
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Mid
  1. A.pure virtual function — a virtual method declared with = 0 that forces derived classes to provide an implementation
  2. B.pure virtual function — a constructor that initializes a new object as a copy of an existing object of the same class
  3. C.pure virtual function — a purely abstract contract of method signatures that implementing classes must define
  4. D.pure virtual function — a visibility level making a member accessible from anywhere outside the class
Reveal the answer + AI explanation — free account

25. What is copy constructor?

Mid
  1. A.a class-level member shared by all objects rather than stored per instance
  2. B.a visibility level restricting a member to access only within its own class
  3. C.a constructor that initializes a new object as a copy of an existing object of the same class
  4. D.a visibility level making a member accessible from anywhere outside the class
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Mid
  1. A.copy constructor — a constructor that initializes a new object as a copy of an existing object of the same class
  2. B.copy constructor — an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
  3. C.copy constructor — an implicit pointer inside a non-static method referring to the object on which it was called
  4. D.copy constructor — a purely abstract contract of method signatures that implementing classes must define
Reveal the answer + AI explanation — free account

28. What is static member?

Mid
  1. A.an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
  2. B.a virtual method declared with = 0 that forces derived classes to provide an implementation
  3. C.a class-level member shared by all objects rather than stored per instance
  4. D.a visibility level making a member accessible from anywhere outside the class
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Mid
  1. A.static member — a special method that runs when an object is created to initialize its state
  2. B.static member — a visibility level allowing access within the class and its derived classes
  3. C.static member — a class-level member shared by all objects rather than stored per instance
  4. D.static member — an abstract class can hold state and concrete methods, while an interface is a pure behavioral contract
Reveal the answer + AI explanation — 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 scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice OOP · Abstraction Mechanisms free