Question Bank
3705 approved questions from the community
Objects have identity, state, and behavior.
What is a mixin in object-oriented programming?
What is dynamic dispatch in the context of polymorphism?
Inheritance promotes code reuse by allowing classes to acquire attributes and behaviors from parent classes.
What is the Single Responsibility Principle (SRP) in relation to cohesion?
The composition over inheritance principle suggests that inheritance should never be used.
Which access specifier makes class members accessible within the class and its subclasses?
Which access specifier makes class members globally accessible to all classes?
What is the Interface Segregation Principle (ISP) and its impact on coupling?
Which access specifier makes class members accessible only within the defining class?
Method overloading is an example of compile-time polymorphism.
What type of polymorphism is method overriding?
What is the difference between aggregation and composition?
What relationship does composition establish between classes?
OOP promotes modularity by organizing code into standalone entities that communicate through public interfaces.
Abstract classes can be instantiated directly.
What is the primary purpose of getters and setters in encapsulation?
What is the Open-Closed Principle (OCP)?
What type of polymorphism is method overloading?
Which of the following are characteristics of document stores? (Select all that apply)