Object Oriented Programming Using C++ – Section 4

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

Leave A Comment?

thirteen + 13 =