Question Bank

1899 approved questions from the community

Which of the following are types of constructors in OOP? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
OOP
by Mohamed

In single inheritance, a class can inherit from only one base class.

MEDIUM
TRUE FALSE
20s
OOP
by Mohamed

Which of the following are advantages of using interfaces in OOP? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
OOP
by Mohamed

What is hybrid inheritance?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

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

MEDIUM
MULTIPLE CHOICE
40s
OOP
by Mohamed

What is multilevel inheritance?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

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

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What type of polymorphism is method overloading?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

Which of the following are ways to achieve method overloading? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
OOP
by Mohamed

What type of polymorphism is method overriding?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

What is a mixin in object-oriented programming?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is the difference between aggregation and composition?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is the Open-Closed Principle (OCP)?

MEDIUM
SINGLE CHOICE
40s
OOP
by Mohamed

What best practice should be followed regarding access specifiers?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What is coupling in OOP?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

Why should excessive use of getter/setter pairs be avoided?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

Favor composition over inheritance is a design principle that suggests composition should be preferred when relationships are less clear.

MEDIUM
TRUE FALSE
30s
OOP
by Mohamed

What is cohesion in OOP?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed

What relationship does inheritance establish between classes?

MEDIUM
SINGLE CHOICE
30s
OOP
by Mohamed

What is external coupling?

MEDIUM
SINGLE CHOICE
35s
OOP
by Mohamed
PreviousPage 12 of 95Next