Computer Science - Object Oriented Programming Using C++

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

Answer: Option C

Explanation:

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

32. 

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

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

Answer: Option A

Explanation:

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

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

Answer: Option B

Explanation:

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

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

Answer: Option A

Explanation:

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

35. 

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

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

Answer: Option C

Explanation:

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