Exam 12: Advanced File Operations
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
This data type can be used to create files and read information from them into memory.
(Multiple Choice)
4.9/5
(40)
An alternative to using the open member function is to use the file stream object declaration itself to open the file.
Example:
fstream DataFile("names.dat", ios::in | ios::out);
(True/False)
4.8/5
(29)
If a file already exists, you can open it with the flags ios::in | ios::out to preserve its contents.
(True/False)
5.0/5
(34)
File output may be formatted the same way as console screen output.
(True/False)
4.8/5
(39)
Closing a file causes any unsaved information still held in the file buffer to be ________.
(Multiple Choice)
4.8/5
(34)
All stream objects have ________, which indicate the condition of the stream.
(Multiple Choice)
4.9/5
(41)
Which statement opens a file in such a way that information will only be written to its end?
(Multiple Choice)
4.8/5
(37)
This state bit is set when an attempted operation has failed.
(Multiple Choice)
4.8/5
(45)
When used by itself, this access flag causes a file's contents to be deleted if the file already exists.
(Multiple Choice)
4.8/5
(39)
Outside of a C++ program, a file is identified by its ________. Inside a C++ program, a file is identified by a(n)________.
(Multiple Choice)
4.8/5
(37)
Data stored here disappears once the program stops running or the computer is powered down.
(Multiple Choice)
4.9/5
(38)
When passing a file stream object to a function, you should always pass it by reference.
(True/False)
5.0/5
(33)
When data is read from a file, it is automatically stored in a variable.
(True/False)
4.8/5
(41)
Showing 21 - 38 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)