Vidyalelo
C++ Programming · all questions

Object Oriented Programming in C++
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

80

Questions

1/4

Page

Pick an option on a question to see the right answer and solution.

Which keyword is used to define a class in C++?

Select an option to see the answer and solution.

What is the process of creating an instance of a class called in C++?

Select an option to see the answer and solution.

What is inheritance in C++?

Select an option to see the answer and solution.

What is the access specifier that allows members to be accessed from outside the class in C++?

Select an option to see the answer and solution.

Which concept in C++ allows a class to have multiple functions with the same name but different parameter lists?

Select an option to see the answer and solution.

What is encapsulation in C++?

Select an option to see the answer and solution.

Which keyword is used to inherit a class in C++?

Select an option to see the answer and solution.

What is polymorphism in C++?

Select an option to see the answer and solution.

Which of the following is true about constructors in C++?

Select an option to see the answer and solution.

What is the process of wrapping data and functions into a single unit called in C++?

Select an option to see the answer and solution.

What is dynamic polymorphism in C++?

Select an option to see the answer and solution.

Which keyword is used to specify that a function cannot be overridden in a derived class in C++?

Select an option to see the answer and solution.

What is an abstract class in C++?

Select an option to see the answer and solution.

What is the purpose of friend functions in C++?

Select an option to see the answer and solution.

What is the access specifier that allows members to be accessed only within the same class or by derived classes in C++?

Select an option to see the answer and solution.

What is a constructor in C++?

Select an option to see the answer and solution.

Which keyword is used to access the base class members from a derived class in C++?

Select an option to see the answer and solution.

What is operator overloading in C++?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which access specifier allows a member to be accessible only within its own class and derived classes in C++?

Select an option to see the answer and solution.