Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please only answer if you actually know the answers. Positive rating will only b

ID: 3647816 • Letter: P

Question

Please only answer if you actually know the answers. Positive rating will only be received if answers are correct. Thanks!

11. Data stored here disappears once the program stops running
or the computer is powered down.

A. on a CD
B. in RAM
C. on a backup tape
D. on the hard disk
E. None of these


____ 12. In order, the three-step process of using a file in a C++
program involves:

A. Insert a disk, open a file, remove the disk
B. Create the file contents, close the file, name the file
C. Open the file, read/write/save data, close the file
D. Name the file, open the file, delete the file
E. None of these

____ 13. This data type can be used to create files and write information
to them but cannot be used to read information from them.

A. ofstream
B. ifstream
C. afstream
D. outstream
E. None of these

____ 14. This data type can be used to create files, read data from
them, and write data to them.

A. ofstream
B. iftream
C. fstream
D. stream
E. None of these

____ 15. Which statement opens a file and links it to a file stream
object?

A. open(aFile) = link(anObject);
B. file.open("c:\filename.txt");
C. linkstream("filename.txt");
D. link(open(filename.txt"));
E. None of these

Explanation / Answer

B. in RAM C. Open the file, read/write/save data, close the file B. ifstream D. stream D. link(open(filename.txt"));