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


Correct Answer: B. for all parameters to the right of the argument

47. The C++ expression p –> val means the same thing as

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


Correct Answer: C. (*p).vai

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)


Correct Answer: C. setprecision(0)

49. Code that has already been tested is said to be _____

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


Correct Answer: C. reliable

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

15 − 6 =