OOPS in C++ MCQs Exercise I

Ques 1 OOPS


Which of the following is true about OOPs?

A OOPs are used to implements real world entities.
B OOPs are used to Minimize the code size.
C OOPs controls the levels of access.
D All of these

Ques 2 OOPS


How many types of access modifiers are in C++?

A 2
B 3
C 4
D 5

Ques 3 OOPS


Which of the following is not an access modifier in C++?

A public
B private
C protected
D internals

Ques 4 OOPS


Which of the following is true about static keywords in C++?

A Static methods can only access static members (data and methods)
B Static methods cannot be overloaded.
C Static data members can only be accessed by static methods.
D Non-static data members can be accessed by static methods.

Ques 5 OOPS


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

A Copy Constructor
B Default Constructor
C Parameterized constructor
D Child Constructor

Ques 6 OOPS


Which of the following access specifier is used as a default in a class definition?

A protected
B public
C private
D interface

Ques 7 OOPS


Which inheritance type is used in the class given below?
class A : public B, public C
{}

A Multilevel inheritance
B Multiple inheritance
C Hybrid inheritance
D Hierarchical Inheritance