Exam 10: Data Files

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

Most IBM or IBM-compatible personal computers assign the name prn to the printer connected to the computer.

(True/False)
4.8/5
(33)

The advantage of binary files is typically speed and compactness.

(True/False)
4.8/5
(35)

To write to a binary file you use the ____ function.

(Multiple Choice)
4.9/5
(40)

A file stream that receives data from a file into a program is referred to as an input file stream.

(True/False)
4.8/5
(39)

____ creates a new file and makes the file available for output; if a file exists with the same name, the old file is erased.

(Multiple Choice)
4.9/5
(39)

The only difference between a file opened in w mode and one opened in w+ mode is where the data is physically placed in the file.

(True/False)
4.9/5
(27)

Naming a file stream is accomplished by declaring a variable name to be of type ____.

(Multiple Choice)
4.7/5
(44)

In the context of data processing, a C program is not usually considered data, and the term file, or data file, is typically used to refer only to external files that contain the data used in a C program.

(True/False)
4.8/5
(37)

The standard library functions rewind(), fseek(), and ftell() can be used to provide random access to a file.

(True/False)
4.9/5
(32)

The internal name is the name of a file as it is known by the operating system.

(True/False)
4.8/5
(39)

A manageable length for a filename is 24 to 30 characters, with an outside maximum of 511 characters.

(True/False)
4.9/5
(32)

FILE fp; correctly declares a file stream.

(True/False)
4.7/5
(40)

____ causes the same display as the statement printf("Hello World!");.

(Multiple Choice)
4.9/5
(39)

____ files store each individual character, such as a letter, digit, dollar sign, decimal point, and so on, using an individual character code.

(Multiple Choice)
4.8/5
(39)

A logical file pointer is one that references a file of related data that has been saved under a common name; that is, it "points to" a data file.

(True/False)
4.9/5
(36)

Most C compilers require a program file to have either the extension c or cc.

(True/False)
4.8/5
(39)

The fflush() function breaks the link between the file's external and internal names, releasing the internal file pointer name, which can then be used for another file.

(True/False)
4.9/5
(39)

It typically takes less space to store most numbers using their binary code than as individual character values.

(True/False)
4.8/5
(38)

fputc() is the general form of ____.

(Multiple Choice)
4.9/5
(43)

A file stream is closed using the ____ function.

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

Filters

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