Return to Topic Menu | Computer Science Main Page | MathBits.com | Terms of Use | Resource CD
Multiple Choice C++ Quiz Files
2. Which of the following header files is required for creating and reading data files?
3. If you create a file with the same name as an existing file, you will be prompted to rename your new file.
4. In the code fout.open("scores.dat", ios::out);
5. A text editor can be used to view, or create, a file.
6. The only way to detect errors when accessing files is to use the assert.h header file and the assert function.
7. ifstream fin; would be used when
8. eof( ) is the function used for
9. If a file you are opening for appending does not exist, the operating system will detect the missing file and terminate the operation.
10. It is possible to open several files for access at the same time.