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");

Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following choices is not one of the common features shared between projects and processes?

A. Defined goals B. Practical constraints C. Unique scope of work D. Zero interaction with other components

Computer Science & Information Technology

A(n) ____ address is a logical address used to identify a network device.

A. IP B. DHCIP C. MAC D. TCP/IP

Computer Science & Information Technology