Object Oriented Programming Using C++ – Section 10

31. When a program calls a function that has default parameters, if you omit an argument, you must _____

A. not omit any other arguments
B. omit all arguments
C. omit all arguments to the right of that argument
D. omit all arguments to the left of that argument

Correct Answer:  C. omit all arguments to the right of that argument

32. Each generic type in a template function definition is preceded by the keyword _________

A. template
B. function
C. type
D. class

Correct Answer:  A. template

33. The declaration section holds

A. data members
B. data members and function prototypes
C. data members, function prototypes, and the functions themselves
D. None of the above

Correct Answer:  B. data members and function prototypes

34. A derived class _____ override attributes of a parent class

A. may
B. may if the two classes have the same name
C. must
D. must not

Correct Answer:  A. may

35. In object-oriented terms, an exception may be considered a(n) _____

A. child
B. encapsulation
C. message
D. scalar type

Correct Answer:  C. message

Leave A Comment?

twenty − eighteen =