Object-Oriented Programming MCQs (Part-11)

What does Code Reusability in OOP promote?

A Increases runtime speed
B Reduces code duplication
C Makes debugging easier
D Increases memory usage

Which of the following is an advantage of Object Cloning in OOP?

A Copies an object
B Optimizes runtime
C Increases inheritance
D Reduces memory usage

Which OOP concept involves creating a new instance by copying an existing object?

A Abstraction
B Inheritance
C Object Cloning
D Polymorphism

What does Dynamic Method Dispatch allow in OOP?

A Memory management
B Runtime method resolution
C Static method calls
D Object initialization

Which feature of Polymorphism allows different classes to have the same method name?

A Dynamic binding
B Method Overloading
C Method Overriding
D Constructor Overloading

What is the benefit of Dynamic Method Dispatch in polymorphism?

A Improves memory management
B Faster execution
C Provides runtime method selection
D Resolves methods at compile time

What is Code Reusability primarily achieved through in OOP?

A Inheritance
B Exception Handling
C Object Cloning
D Method Overloading

What does Object Cloning ensure when copying an object?

A Prevents inheritance
B Copies both data and methods
C Copies constructor only
D Copies methods only

Which of the following is an example of Dynamic Method Dispatch in OOP?

A Creating a method in a superclass
B Using method overloading
C Calling a method based on object type at runtime
D Calling a method based on reference type at compile time

Which of the following best describes Polymorphism in OOP?

A Same method, multiple forms
B Multiple classes, one method
C Same object, different state
D Multiple objects, one class

Which of the following principles is most closely related to Code Reusability in OOP?

A Abstraction
B Inheritance
C Encapsulation
D Polymorphism

What does Method Overloading allow in OOP?

A A method in one class and another in a subclass
B Multiple classes with the same name
C A method with the same signature
D Multiple methods with the same name

What is the key difference between Object Cloning and Object Instantiation?

A Instantiation is more efficient than cloning
B Cloning creates a new object
C Instantiation initializes the object’s class
D Cloning copies data from an object

What does Polymorphism allow a subclass to do in OOP?

A Inherit multiple classes
B Define static methods
C Override or extend inherited methods
D Hide methods in subclasses

Which OOP concept helps to ensure that an object’s state is not directly modified?

A Inheritance
B Encapsulation
C Method Overloading
D Polymorphism