1. : Which of the following is NOT a pillar of Object-Oriented Programming (OOP)?
(A) Encapsulation
(B) Inheritance
(C) Polymorphism
(D) Compilation
2. : What is encapsulation in OOP?
(A) Hiding implementation details and exposing only necessary features
(B) Reusing existing code by creating new classes
(C) Creating multiple methods with the same name
(D) Defining a superclass and subclass relationship
3. : Which OOP concept allows a class to derive properties and behavior from another class?
(A) Abstraction
(B) Encapsulation
(C) Inheritance
(D) Polymorphism
4. : What is polymorphism in OOP?
(A) The ability of one class to hide data
(B) The ability to process objects differently based on their type
(C) The process of creating new classes
(D) The process of making variables private
5. : In OOP, what does abstraction mainly focus on?
(A) The physical storage of objects
(B) Showing only essential details and hiding complexity
(C) Increasing the size of classes
(D) Using multiple inheritance
6. : Which keyword is used to create an object in Java?
(A) make
(B) object
(C) new
(D) create
7. : What is a constructor in OOP?
(A) A special function that initializes objects
(B) A method that deletes objects
(C) A function to overload operators
(D) A variable inside a class
8. : Which OOP concept helps in achieving “code reusability”?
(A) Polymorphism
(B) Abstraction
(C) Inheritance
(D) Encapsulation
9. : What type of method is declared inside an abstract class without implementation?
(A) Final method
(B) Static method
(C) Abstract method
(D) Virtual method
10. : Which of the following best describes a class in OOP?
(A) A collection of variables only
(B) An instance of an object
(C) A blueprint for creating objects
(D) A function inside a program