Question Bank

3705 approved questions from the community

Objects have identity, state, and behavior.

EASY
TRUE FALSE
20s
OOP
by Mohamed

What is a mixin in object-oriented programming?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is dynamic dispatch in the context of polymorphism?

HARD
SINGLE CHOICE
40s
OOP
by Mohamed

Inheritance promotes code reuse by allowing classes to acquire attributes and behaviors from parent classes.

EASY
TRUE FALSE
25s
OOP
by Mohamed

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

HARD
SINGLE CHOICE
40s
OOP
by Mohamed

The composition over inheritance principle suggests that inheritance should never be used.

HARD
TRUE FALSE
30s
OOP
by Mohamed

Which access specifier makes class members accessible within the class and its subclasses?

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

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

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

What is the Interface Segregation Principle (ISP) and its impact on coupling?

HARD
SINGLE CHOICE
45s
OOP
by Mohamed

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

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

Method overloading is an example of compile-time polymorphism.

MEDIUM
TRUE FALSE
25s
OOP
by Mohamed

What type of polymorphism is method overriding?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

What is the difference between aggregation and composition?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What relationship does composition establish between classes?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

OOP promotes modularity by organizing code into standalone entities that communicate through public interfaces.

EASY
TRUE FALSE
25s
OOP
by Mohamed

Abstract classes can be instantiated directly.

MEDIUM
TRUE FALSE
25s
OOP
by Mohamed

What is the primary purpose of getters and setters in encapsulation?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

What is the Open-Closed Principle (OCP)?

MEDIUM
SINGLE CHOICE
40s
OOP
by Mohamed

What type of polymorphism is method overloading?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

Which of the following are characteristics of document stores? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
NoSQL
by Mohamed
PreviousPage 28 of 186Next