Exam 13: Advanced File and Io Operations
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
The function can be used to store binary data to a file.
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
C
When used by itself, _ causes a file's contents to be deleted if the file already exists.
(Multiple Choice)
4.8/5
(41)
When a file is opened for reading, the file stream object's "read position" is
(Multiple Choice)
4.8/5
(44)
string objects cannot be stored to a binary file without further processing because they contain pointers.
(True/False)
4.8/5
(34)
All stream objects have that indicate the condition of the stream.
(Multiple Choice)
4.8/5
(42)
The operation of moving to a particular location in an input file is accomplished through
(Multiple Choice)
4.8/5
(30)
The read and write member functions of fstream objects can only work with buffers specified by pointers to char.
(True/False)
4.9/5
(39)
The ios::hardfail bit is set when an unrecoverable error occurs.
(True/False)
4.7/5
(38)
Outside of a C++ program, a file is identified by its . Inside a C++ program, a file is accessed through a .
(Multiple Choice)
4.8/5
(40)
The data type can be used to create files and write information to them.
(Multiple Choice)
4.9/5
(36)
The member function, _, reads a single character from a file.
(Multiple Choice)
4.8/5
(41)
The process of writing in- memory objects to a file so that the object can later be read back into memory
(Multiple Choice)
4.8/5
(48)
The member function reports when the end of a file has been found.
(Multiple Choice)
5.0/5
(38)
Opening a file with the flags ios::in | ios::out will preserve the contents of the file if the file already exists.
(True/False)
4.8/5
(50)
The stream member function fail() can be used to determine whether the last operation performed on a stream was successful.
(True/False)
4.7/5
(37)
Showing 1 - 20 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)