Computer Science - Object Oriented Programming Using C++

46. 

If you omit any constructor argument when you instantiate an object, you must use default values

A. for all parameters to the constructor
B. for all parameters to the right of the argument
C. for all parameters to the left of the argument
D. for no other parameters

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

47. 

The C++ expression p --> val means the same thing as

A. *p.val
B. *(p.val)
C. (*p).vai
D. p.val

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

48. 

Which of the following tells C++ to display numbers with zero decimal places?

A. setiosflags(0)
B. setiosflags(zero)
C. setprecision(0)
D. setprecision(zero)

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

49. 

Code that has already been tested is said to be _____

A. inherited
B. reusable
C. reliable
D. polymorphic

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

« Prev   1 2 3 4 5 6 7 8 9 10