C++ MCQ’s

C++ MCQ’s Home Page

C++ Basic 1
C++ Basic 2
C++ Basic 3
C++ Basic 4
C++ Basic 5
C++ OOPs Concepts 1
C++ OOPs Concepts 2
C++ OOPs Concepts 3
C++ OOPs Concepts 4
C++ OOPs Concepts 5

 

C++ Language MCQ’S | OOPs Concepts Set 1

11.
Which of the following class allows to declare only one object of it?

a) Abstract class
b) Virtual class
c) Singleton class
d) Friend class

12.
Which of the following is not a type of Constructor?

a) Friend constructor
b) Copy constructor
c) Default constructor
d) Parameterized constructor

13.
Which of the following is correct?

a) Base class pointer object cannot point to a derived class object
b) Derived class pointer object cannot point to a base class object
c) A derived class cannot have pointer objects
d) A base class cannot have pointer objects

14.
Out of the following, which is not a member of the class?

a) Static function
b) Friend function
c) Constant function
d) Virtual function

15.
What is the other name used for functions inside a class?

a) Member variables
b) Member functions
c) Class functions
d) Class variables