Exam 12: Advanced File Operations

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

Which of the following data types can be used to create files and read information from them into memory?

(Multiple Choice)
4.9/5
(31)

File output may be formatted the same way as console screen output.

(True/False)
4.9/5
(31)

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

(True/False)
4.8/5
(37)

ofstream, ifstream, and fstream are

(Multiple Choice)
4.9/5
(32)

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

(True/False)
4.8/5
(41)

All stream objects have __________ which indicate the position of the stream.

(Multiple Choice)
4.8/5
(34)

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

(True/False)
4.8/5
(31)

Which of the following access flags, when used by itself, causes a file's contents to be deleted if the file already exists?

(Multiple Choice)
4.8/5
(33)

Which of the following is the data type that can be used to create files and write information to them but cannot be used to read information from them?

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(39)

Which of the following is the state bit that can be tested to see if the end of an input stream is encountered?

(Multiple Choice)
4.8/5
(36)

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

(True/False)
4.8/5
(38)

If a file already exists, you can open it with the flags ios::in | ios::out to preserve its contents.

(True/False)
4.9/5
(49)

Outside of a C++ program, a file is identified by its __________while inside a C++ program, a file is identified by a(n) __________.

(Multiple Choice)
4.9/5
(41)

The end-of-file marker is automatically written

(Multiple Choice)
4.9/5
(40)

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

(True/False)
4.8/5
(34)

Which of the following statements opens a file and links it to a file stream object?

(Multiple Choice)
4.9/5
(39)

What is true about the following statement? Out)open("values.dat", ios: : App);

(Multiple Choice)
4.8/5
(28)
Showing 21 - 38 of 38
close modal

Filters

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