Question Bank

3705 approved questions from the community

What is the 'diamond problem' in multiple inheritance?

HARD
SINGLE CHOICE
45s
OOP
by Mohamed

What is logical cohesion?

HARD
SINGLE CHOICE
35s
OOP
by Mohamed

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

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is hybrid inheritance?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is communicational cohesion?

HARD
SINGLE CHOICE
40s
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

Polymorphism allows objects of derived classes to be treated as objects of their base class.

MEDIUM
TRUE FALSE
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 primary purpose of getters and setters in encapsulation?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

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

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

What relationship does composition establish between classes?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

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

EASY
SINGLE CHOICE
25s
OOP
by Mohamed

What type of polymorphism is method overriding?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

What are the three core characteristics of an object?

EASY
SINGLE CHOICE
30s
OOP
by Mohamed

What is coupling in OOP?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed
PreviousPage 27 of 186Next