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. ____________ refers to the act of representing only essential features without including the background details.
A.
Data Hiding
B.
Data Encapsulation
C.
Data Abstraction
D.
All of these


Show Answer
Q. In CPP program, Can we declare and define a user defined function inside a struct as we do in a class ?
A.
Yes
B.
No


Show Answer
Q. When overloading unary operators using Friend function,it requires_____ argument
A.
Zero
B.
One
C.
Two
D.
None


Show Answer
Q. Assume class TEST. Which of the following statements is/are responsible to invoke copy constructor?
A.
TEST T2(T1)
B.
TEST T4 = T1
C.
T2 = T1
D.
TEST T2(T1) and TEST T4 = T1
E.
All of these


Show Answer
Q. Can constructors be overloaded?
A.
Yes
B.
No


Show Answer
Q. expression x.y represents as
A.
member x of object y
B.
member y of object x
C.
member y of object pointed by x
D.
All


Show Answer
Q. Difference between static and dynamic memory allocation is
A.
In static memory allocation memory to be allocated in preknown
B.
In dynamic memory allocation memory to be allocated in preknown
C.
There is no differnece


Show Answer
Q. Which is boolean operator for logical and
A.
&&
B.
||
C.
&|


Show Answer
Q. Which is not a correct variable type
A.
float
B.
real
C.
double
D.
int


Show Answer
Q. Declaring pointer more than one can cause
A.
Trap
B.
error
C.
abort a program
D.
none of above


Show Answer