Quiz for:
OOPs for Interviews

Question 1

What does the 'protected' access modifier do?

Question 2

Which inheritance type allows a class to inherit features from more than one base class?

Question 3

What is the primary purpose of using Object-Oriented Programming (OOPs)?

Question 4

In which type of inheritance does a class inherit properties and methods from a single base class?

Question 5

What does the 'this' pointer in C++ signify?

Question 6

Which type of polymorphism is achieved through function overriding?

Question 7

What is the purpose of a destructor in C++?

Question 8

What is a static variable in a class?

Question 9

Which type of constructor initializes object properties when an object is created?

Question 10

Which of the following is NOT a type of constructor in C++?

Question 11

In C++, what is the default access modifier for class members?

Question 12

Which of the following describes a hybrid inheritance?

Question 13

What is an abstract class in OOP?

Question 14

How is function overloading different from function overriding?

Question 15

What is achieved by using access modifiers in OOP?