Multiple Choice
Suppose that outFile is an ofstream variable and output is to be stored in the file outputData.out.Which of the following statements opens the file outputData.out and associates outFile to the output file?
A) outFile("outputData.out") ;
B) outFile.open("outputData.out") ;
C) open(outFile,"outputData.out") ;
D) open.outFile("outputData.out") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q30: _ is a parameterized stream manipulator.<br>A) endl<br>B)
Q31: It is a good idea to redefine
Q32: Suppose that ch1, ch2, and ch3 are
Q33: Suppose that x and y are int
Q34: Consider the following program segment. Which of
Q35: Suppose that x is an int variable,
Q36: What is the output of the following
Q37: The number of input data extracted by
Q39: Entering a char value into an int
Q40: C++ comes with a wealth of functions,