Exam 8: Io Streams and Data Files

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

Using the seek() functions in random access, a(n) ____________________ offset means move forward in the file.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

positive

The ____________________() methods allow the programmer to move to any position in a file.

Free
(Short Answer)
4.8/5
(38)
Correct Answer:
Verified

seek

The ____ function is a request to the operating system to end program execution immediately.

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

D

In declaring and initializing a string variable for use in an open() method, the string is considered a ____.

(Multiple Choice)
4.9/5
(33)

The close() function takes one argument.

(True/False)
4.8/5
(35)

For file streams, the direction, or mode, is defined in relation to the ____________________ and not the file.

(Short Answer)
4.8/5
(34)

Opening a file connects a file stream object to a specific external filename.

(True/False)
4.8/5
(38)

The ____ method returns a true value if a file was opened unsuccessfully or a false value if the open succeeded.

(Multiple Choice)
4.9/5
(35)

C++ supports physical file objects.

(True/False)
4.8/5
(34)

Two basic types of files exist: text files, and ____________________ files.

(Short Answer)
4.8/5
(32)

The fstream class s ____ function is used for character-by-character input from an input stream.

(Multiple Choice)
5.0/5
(48)

Current versions of UNIX allow 14 characters as the maximum filename length.

(True/False)
4.8/5
(33)

A(n) ____ file object is a stream that connects a file of logically related data, such as a data file, to a program.

(Multiple Choice)
4.9/5
(35)

All computer operating systems use the same specification as to the maximum number of characters permitted for an external filename.

(True/False)
4.9/5
(46)

A(n) ____ is a one-way transmission path used to connect a file stored on a physical device, such as a disk or CD, to a program.

(Multiple Choice)
4.9/5
(36)

For each file your program uses, a distinct ____________________ stream object must be created.

(Short Answer)
4.9/5
(33)

When a program is executed, the standard input stream cin is connected to the standard input device.

(True/False)
4.8/5
(38)

A(n) ____ is a one-way transmission path between a source and a destination.

(Multiple Choice)
4.7/5
(38)

The term ____ refers to the process of retrieving data from a file.

(Multiple Choice)
4.9/5
(31)

C++ compilers require a program file with the extension ____.

(Multiple Choice)
4.9/5
(30)
Showing 1 - 20 of 50
close modal

Filters

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