Exam 12: Advanced File Operations

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

The ________ marker is the character that marks the end of a file, and is automatically written when the file is closed.

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

A

In order, the three-step process of using a file in a C++ program involves:

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

C

This term means non-sequentially accessing information in a file.

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

C

When used by itself, the ios::app flag causes the file's existing contents to be deleted if the file already exists.

(True/False)
4.8/5
(41)

To write to a file, you use the file_write()function.

(True/False)
4.9/5
(47)

The ios::out flag causes the file's existing contents to be deleted if the file already exists.

(True/False)
4.8/5
(42)

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

(Multiple Choice)
4.7/5
(42)

This member function can be used to store binary data to a file.

(Multiple Choice)
4.7/5
(40)

This data type can be used to create files, read data from them, and write data to them.

(Multiple Choice)
4.8/5
(35)

This member function reads a single character from a file.

(Multiple Choice)
4.8/5
(33)

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

(True/False)
4.9/5
(29)

This state bit can be tested to see if the end of an input stream is encountered.

(Multiple Choice)
4.9/5
(34)

This data type can be used to create files and write information to them but cannot be used to read information from them.

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.9/5
(32)

What is true about the following statement? What is true about the following statement?

(Multiple Choice)
4.8/5
(37)

Which of the following statements opens the file info.txt for both input and output?

(Multiple Choice)
4.9/5
(40)

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

(True/False)
4.8/5
(33)

The setprecision manipulator cannot be used to format data written to a file.

(True/False)
4.8/5
(37)

When a file is opened, the file stream object's "read position" is ________.

(Multiple Choice)
4.7/5
(36)

To access files from a C++ program, you must use this directive:

(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 38
close modal

Filters

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