Question Bank
3705 approved questions from the community
Which of the following are access specifiers commonly used in OOP? (Select all that apply)
What does 'has-a' relationship signify in OOP?
What is the purpose of abstraction in OOP?
What is the Open-Closed Principle (OCP)?
A class can be instantiated to create multiple objects.
What is common coupling?
What is communicational cohesion?
What is the primary difference between an abstract class and a concrete class?
Which cohesion level indicates that methods have no meaningful relationship?
Encapsulation allows direct access to all class attributes from outside the class.
What is hybrid inheritance?
What is the 'diamond problem' in multiple inheritance?
What is a mixin in object-oriented programming?
What is the Single Responsibility Principle (SRP) in relation to cohesion?
What is the difference between aggregation and composition?
What type of polymorphism is method overloading?
What is dynamic dispatch in the context of polymorphism?
What is the Liskov Substitution Principle (LSP)?
Which access specifier makes class members globally accessible to all classes?
Which access specifier makes class members accessible only within the defining class?