Object Oriented Programming
Comprehensive Finals Review (Qns & Ans)
2025
1. Which of the following is a key principle of object-oriented
programming?
- A) Encapsulation
- B) Compilation
- C) Debugging
- D) Encryption
- ANS: A) Encapsulation
- Rationale: Encapsulation is the principle of bundling data
and methods that operate on the data within a single unit or class.
©2024/2025
,2. In OOP, the term 'inheritance' refers to:
- A) The ability to create new classes from existing ones
- B) The process of hiding data
- C) The use of functions within a class
- D) The conversion of data types
- ANS: A) The ability to create new classes from existing
ones
- Rationale: Inheritance allows a new class to inherit
properties and methods from an existing class.
3. Which OOP concept involves using the same operation to
perform different tasks?
- A) Encapsulation
- B) Polymorphism
- C) Abstraction
- D) Inheritance
- ANS: B) Polymorphism
- Rationale: Polymorphism allows methods to do different
things based on the object it is acting upon.
©2024/2025
, 4. The process of defining a method in a subclass that already
exists in the parent class is known as:
- A) Method overloading
- B) Method overriding
- C) Method hiding
- D) Method chaining
- ANS: B) Method overriding
- Rationale: Method overriding allows a subclass to provide a
specific implementation of a method that is already defined in its
superclass.
5. Which of the following is NOT a feature of object-oriented
programming?
- A) Encapsulation
- B) Inheritance
- C) Polymorphism
- D) Procedural programming
- ANS: D) Procedural programming
- Rationale: Procedural programming is a programming
paradigm that is not based on objects.
Fill-in-the-Blank Questions
©2024/2025