Question Bank

3705 approved questions from the community

Which of the following are access specifiers commonly used in OOP? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
OOP
by Mohamed

What does 'has-a' relationship signify in OOP?

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

What is the purpose of abstraction in OOP?

EASY
SINGLE CHOICE
30s
OOP
by Mohamed

What is the Open-Closed Principle (OCP)?

MEDIUM
SINGLE CHOICE
40s
OOP
by Mohamed

A class can be instantiated to create multiple objects.

EASY
TRUE FALSE
20s
OOP
by Mohamed

What is common coupling?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is communicational cohesion?

HARD
SINGLE CHOICE
40s
OOP
by Mohamed

What is the primary difference between an abstract class and a concrete class?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

Which cohesion level indicates that methods have no meaningful relationship?

HARD
SINGLE CHOICE
35s
OOP
by Mohamed

Encapsulation allows direct access to all class attributes from outside the class.

EASY
TRUE FALSE
20s
OOP
by Mohamed

What is hybrid inheritance?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is the 'diamond problem' in multiple inheritance?

HARD
SINGLE CHOICE
45s
OOP
by Mohamed

What is a mixin in object-oriented programming?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is the Single Responsibility Principle (SRP) in relation to cohesion?

HARD
SINGLE CHOICE
40s
OOP
by Mohamed

What is the difference between aggregation and composition?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What type of polymorphism is method overloading?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

What is dynamic dispatch in the context of polymorphism?

HARD
SINGLE CHOICE
40s
OOP
by Mohamed

What is the Liskov Substitution Principle (LSP)?

HARD
SINGLE CHOICE
45s
OOP
by Mohamed

Which access specifier makes class members globally accessible to all classes?

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

Which access specifier makes class members accessible only within the defining class?

EASY
SINGLE CHOICE
25s
OOP
by Mohamed
PreviousPage 26 of 186Next