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
Advertisement

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
Advertisement

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
Advertisement

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
Advertisement

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
Advertisement

Leave A Comment?