Object Oriented Programming Using C++ – Section 5

46. Assume that a variable will need to store only integers in the range of 1 through 20000. The most efficient data type for the variable is _____

A. character
B. float
C. integer
D. long integer
E. short integer

Correct Answer:  E. short integer

47. Which of the following is true?

A. iostream is derived from istream
B. iostream is derived from ostream
C. ostream is derived from iostream
D. ostream is derived from istream

Correct Answer:  C. ostream is derived from iostream

Leave A Comment?

twenty + four =