mcqs bucket

  • C++ Mcqs Questions | MCQs Bucket Largest Mcqs Website

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews
Here is the MCQs guide for the topic of C++. you will find various types of questions along with there answers in this
Q. Every class has atleast one construtor
A.
True
B.
False


Show Answer
Q. Can we overload constructors in C++
A.
Yes
B.
No


Show Answer
Q. If no constructor is there, then compiler assumes the class to have a default constructor with no arguments
A.
True
B.
False


Show Answer
Q. Constructor is
A.
A class automatically called whenever a new object of this class is created
B.
A class automatically called whenever a new object of this class is destroyed
C.
A function automatically called whenever a new object of this class is created
D.
A function automatically called whenever a new object of this class is destroyed


Show Answer
Q. Which operator is used to define a member of a class from outside the class definition
A.
->
B.
::
C.
.
D.
>>


Show Answer
Q. All members of class have which access to its members
A.
private
B.
public
C.
protected
D.
depends


Show Answer