A. A Semicolon (;)B. A Fullstop(.)C. A Comma (,)D. A Slash (/)
Tag: C/C++ Programming MCQs
An expression A.B in C++ means ____
A. A is member of object BB. B is member of Object AC. Product of A and BD. None of these
Which operation is used as Logical ‘AND’
A. Operator-&B. Operator-||C. Operator-&&D. Operator +
Which one is not a correct variable type in C++?
A. floatB. realC. intD. double
Delaration a pointer more than once may cause ____
A. ErrorB. AbortC. TrapD. Null
All members of class have which access to its members
A. privateB. publicC. protectedD. depends
Which operator is used to define a member of a class from outside the class definition
A. ->B. ::C. .D. >>
Constructor is
A. A class automatically called whenever a new object of this class is createdB. A class automatically called whenever a new object of this class is destroyedC. A function automatically called whenever a new object of this class is createdD. Read More …
If no constructor is there, then compiler assumes the class to have a default constructor with no arguments
A. TRUEB. FALSE
Can we overload constructors in C++
A. YesB. No