Object Oriented Programming (OOP) MCQs | Page - 1
Dear candidates you will find MCQ questions of Object Oriented Programming (OOP) here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
β
Correct Answer: (A)
true
Q. What is the difference between struct and class in terms of Access Modifier?
β
Correct Answer: (C)
by default all the struct members are public while by default class members are private.
Q. The default access level assigned to members of a class is
β
Correct Answer: (A)
private
Q. There is nothing like a virtual constructor of a class.
β
Correct Answer: (B)
false
Q. Which of the following operators allow defining the member functions of a class outside the class?
β
Correct Answer: (A)
::
Q. Which type of class has only one unique value for all the objects of that same class?
β
Correct Answer: (C)
static
Q. Which one of the following is not a fundamental data type in C++?
β
Correct Answer: (B)
string
Q. What is a constructor?
β
Correct Answer: (C)
a function automatically called whenever a new object of this class is created.
Jump to