Exam 8: Io Streams and Data Files

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

In C and C++, the ___________________ sentinel is never counted as part of the file.

(Short Answer)
4.8/5
(38)

To understand file access types, first you need to understand how data is ____________________ in a file.

(Short Answer)
4.9/5
(34)

The ____ method breaks the connection between the file s external name and the file stream object.

(Multiple Choice)
4.8/5
(37)

The ___________________() method returns a false value if the file was opened successfully.

(Short Answer)
4.9/5
(40)

You must check that the ____ method established a connection between a file stream and an external file successfully because this type of call is a request to the OS that can fail for various reasons.

(Multiple Choice)
4.9/5
(36)

All input streams have a ____ function for putting back the last character read from an input stream back on the stream.

(Multiple Choice)
4.9/5
(40)

The term ____ refers to the way data is stored in a file.

(Multiple Choice)
4.8/5
(37)

The standard error stream is represented by ____ in C and C++.

(Multiple Choice)
4.8/5
(35)

You must specify a C-string s maximum length in brackets immediately after it s declared.

(True/False)
5.0/5
(39)

In addition to the get() method, all input streams have a set() method for putting the last character read from an input stream back on the stream.

(True/False)
4.8/5
(32)

A ____ is a collection of data stored together under a common name, usually on a disk, magnetic tape, USB drive, or CD/DVD.

(Multiple Choice)
4.8/5
(29)

Input file stream objects are declared to be of type ____.

(Multiple Choice)
4.8/5
(39)

A file is a collection of data stored together under a common name, usually on a disk.

(True/False)
4.9/5
(37)

Each file has a unique filename, referred to as the file s ____.

(Multiple Choice)
4.8/5
(34)

The Excel program adds the ____ extension automatically to all spreadsheet files.

(Multiple Choice)
4.9/5
(34)

Long filenames should be avoided because they take more time to type and can result in typing errors.

(True/False)
4.7/5
(33)

Reading data from a(n) ___________________-based file is almost identical to reading data from a standard keyboard.

(Short Answer)
4.8/5
(34)

There are two types of file access: sequential access and ____________________ access.

(Short Answer)
4.8/5
(46)

In using ifstream and ofstream objects, the input or output mode is indicated by the ____________________.

(Short Answer)
4.9/5
(41)

A file stream that sends or writes data to a file is an ____.

(Multiple Choice)
4.9/5
(42)
Showing 21 - 40 of 50
close modal

Filters

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