Exam 13: Advanced File and Io Operations

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

The ________ data type can be used to create files and write information to them.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.8/5
(32)

When you store data in a variable, it is automatically saved in a file.

(True/False)
4.8/5
(37)

Closing a file causes any buffered information to be

(Multiple Choice)
4.7/5
(36)

When the >> operator extracts information from a file, it expects to read data that are separated by

(Multiple Choice)
4.8/5
(38)

The ios::hardfail bit is set when an unrecoverable error occurs.

(True/False)
4.9/5
(40)

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

(Multiple Choice)
4.8/5
(25)

The ________ may be used to write information to a file.

(Multiple Choice)
4.7/5
(30)

When you assign a name to a file, the operating system identifies the file by that name.

(True/False)
4.8/5
(36)

Data stored ________ is lost when the computer is powered down.

(Multiple Choice)
4.9/5
(35)

The operation of moving to a particular location in an input file is accomplished through

(Multiple Choice)
4.8/5
(33)

A file ________ is a small holding section of memory that file-bound information is first written to.

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.8/5
(38)

The ________ data type can be used to connect to files and read information from them into memory.

(Multiple Choice)
4.7/5
(29)

The read and write member functions of fstream objects can only work with buffers specified by pointers to char.

(True/False)
4.8/5
(34)

Only one file stream object can be declared per C++ program.

(True/False)
4.8/5
(35)

The member function, ________, reads a single character from a file.

(Multiple Choice)
4.8/5
(26)

To write to a binary file, you can use the write() member function of an ofstream object.

(True/False)
4.9/5
(27)

The term ________ means non-sequentially accessing information in a file.

(Multiple Choice)
4.8/5
(31)

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
(33)
Showing 21 - 40 of 40
close modal

Filters

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