Programming - C++ Language
You Are Here :: Home > C++ Language > Oops - General Questions
31. |
The break statement causes an exit from
|
A. |
from the innermost loop only. |
B.
|
only from the innermost switch. |
C.
|
from all loops & switches.
|
D.
|
from the innermost loop or switch.
|
|
Answer: Option D
Explanation:
|
32. |
A property which is not true for classes is that they
|
A. |
are removed from memory when not in use. |
B.
|
permit data to be hidden from other classes. |
C.
|
bring together all aspects of an entity in one place.
|
D.
|
Can closely model objects in the real world.
|
|
Answer: Option C
Explanation:
|
33. |
You can read input that consists of multiple lines of text using
|
A. |
the normal cout << combination. |
B.
|
the cin.get( ) function with one argument. |
C.
|
the cin.get( ) function with two arguments.
|
D.
|
the cin.get( ) function with three arguments.
|
|
Answer: Option C
Explanation:
|
34. |
The keyword friend does not appear in
|
A. |
the class allowing access to another class. |
B.
|
the class desiring access to another class. |
C.
|
the private section of a class.
|
D.
|
the public section of a class.
|
|
Answer: Option C
Explanation:
|
35. |
The operator that cannot be overloaded is
|
|
Answer: Option B
Explanation:
|
36. |
A struct is the same as a class except that
|
A. |
there are no member functions. |
B.
|
all members are public. |
C.
|
cannot be used in inheritance hierarchy.
|
D.
|
it does have a this pointer.
|
|
Answer: Option C
Explanation:
|
« prev
next »