Exam 13: Advanced File and Io Operations

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The function can be used to store binary data to a file.

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

C

The member function

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

D

The statement dataFile.close();

Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
Verified

D

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)

Closing a file causes any buffered information to be

(Multiple Choice)
4.8/5
(35)

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)

To set up a file to perform file I/O, you must declare

(Multiple Choice)
5.0/5
(37)

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)

ofstream, ifstream, and fstream are

(Multiple Choice)
4.8/5
(36)
Showing 1 - 20 of 38
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)