Object Oriented Programming Using C Plus Plus - Study Mode

[#311] We can output text to an object of class ofstream using the insertion operator « because
Correct Answer

(D) the insertion operator is overloaded in ofstream

[#312] The operator that allocates new memory is _____
Correct Answer

(C) new

[#313] When you declare a pointer, you must give it a _____
Correct Answer

(B) type and name

[#314] You typically initialize Short Integer, Integer and Long Integer variables to
Correct Answer

(D) the number 0

[#315] 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 _____
Correct Answer

character