OOP · Abstraction Mechanisms interview questions

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.

Practice OOP · Abstraction Mechanisms free

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

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
  1. A.public access modifier
  2. B.this pointer
  3. C.friend function
  4. D.constructor

Answer + AI explanation with a 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

Answer + AI explanation with a 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

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
  1. A.abstract class
  2. B.abstract class vs interface
  3. C.destructor
  4. D.pure virtual function

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

8. Which term means: "a visibility level making a member accessible from anywhere outside the class"?

Junior
  1. A.abstract class vs interface
  2. B.public access modifier
  3. C.interface
  4. D.copy constructor

Answer + AI explanation with a 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

Answer + AI explanation with a 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

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
  1. A.private access modifier
  2. B.static member
  3. C.abstract class vs interface
  4. D.friend function

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

14. Which term means: "a visibility level allowing access within the class and its derived classes"?

Junior
  1. A.destructor
  2. B.protected access modifier
  3. C.public access modifier
  4. D.pure virtual function

Answer + AI explanation with a 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

Answer + AI explanation with a 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

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
  1. A.abstract class
  2. B.public access modifier
  3. C.destructor
  4. D.friend function

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

20. Which term means: "a purely abstract contract of method signatures that implementing classes must define"?

Mid
  1. A.private access modifier
  2. B.constructor
  3. C.interface
  4. D.abstract class

Answer + AI explanation with a 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

Answer + AI explanation with a 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

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
  1. A.protected access modifier
  2. B.static member
  3. C.pure virtual function
  4. D.public access modifier

Answer + AI explanation with a 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

Answer + AI explanation with a 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

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
  1. A.interface
  2. B.this pointer
  3. C.copy constructor
  4. D.pure virtual function

Answer + AI explanation with a 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

Answer + AI explanation with a 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

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
  1. A.static member
  2. B.constructor
  3. C.protected access modifier
  4. D.interface

Answer + AI explanation with a 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

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.

Practice OOP · Abstraction Mechanisms free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers