Object-Oriented Programming MCQs (Part-1)

What is the main purpose of Encapsulation in OOP?

A Method overloading
B Inheritance
C Data hiding
D Data security

Which of the following is a key feature of Polymorphism?

A Method Overloading
B Constructor
C Abstraction
D Data hiding

What does Inheritance allow in OOP?

A Data hiding
B Secure coding
C Event handling
D Reusability

What is the purpose of a Constructor in OOP?

A Exception handling
B Object initialization
C Memory management
D Method overloading

Which of the following is a feature of Abstraction?

A Reusability
B Polymorphism
C Hiding implementation details
D Security

What does Static Binding refer to in OOP?

A Runtime binding
B Exception handling
C Object initialization
D Compile-time binding

Which of the following concepts allows a class to inherit from more than one class?

A Abstraction
B Multiple Inheritance
C Encapsulation
D Polymorphism

What is an Abstract Class in OOP?

A A class that cannot be inherited
B A class that is a singleton
C A class with at least one abstract method
D A class with no objects

Which of these is NOT a principle of OOP?

A Modularity
B Abstraction
C Inheritance
D Encapsulation

Method Overloading allows:

A Same method, same signature
B Same method name, different signature
C Method overriding
D Different method names, same signature

Which of the following is an interface in OOP?

A Abstract method
B Collection
C A contract for classes to follow
D Class

What is Dynamic Binding?

A Creating object instances
B Binding to a static class
C Resolving method calls at compile-time
D Resolving method calls at runtime

What does Exception Handling provide in OOP?

A Error detection and recovery
B Object cloning
C Memory management
D Method overloading

What is the main advantage of Object Cloning?

A Exception handling
B Reusability
C Creating identical copies
D Memory optimization

What does SOLID stand for in OOP?

A Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
B Secure Open Liskov Interface Dependency
C Simple Object-Oriented Logic Integration Design
D Secure Object-oriented Logic for Integrated Development