Computer Science - Object Oriented Programming Using C++

21. 

If you want to override constructor default values for an object you are instantiating, you must also override

A. all other parameters to that constructor
B. all parameters to the left of that value
C. all parameters to the right of that value
D. no other parameters to that constructor

Answer: Option B

Explanation:

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

22. 

An unsigned double type of data

A. can have only positive values
B. does not exist
C. is always less than 1010
D. can have only negative values
E. None of the above

Answer: Option A

Explanation:

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

23. 

The extraction operator >> is a(n) _____

A. overloaded function
B. C++ class
C. C++ object
D. static reference variables

Answer: Option A

Explanation:

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

24. 

Modules in C++ programs are

A. functions
B. procedures
C. subroutines
D. miniprograms

Answer: Option A

Explanation:

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

25. 

The return type for all destructors is

A. the class
B. void
C. the same as the first data in the class
D. None

Answer: Option D

Explanation:

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