Exam 10: Data Files

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

Data that is stored together under a common name on a storage medium other than the computer's main memory is called a ____.

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

B

When working with random access files, the ____ function returns the offset value of the next character that will be read or written.

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

B

The function prototype for ftell() is contained in stdlib.h.

Free
(True/False)
4.8/5
(36)
Correct Answer:
Verified

False

If a file opened for reading does not exist, the fopen() function returns the NULL address value.

(True/False)
4.8/5
(34)

____ writes a string to a file.

(Multiple Choice)
4.8/5
(28)

The maximum number of files that can be opened at one time is defined by the system symbolic constant FOPEN_MAX.

(True/False)
4.9/5
(43)

The actual declaration of the FILE structure is contained in the ____ standard header file.

(Multiple Choice)
4.7/5
(30)

The exit() function is a systems call that passes its integer argument directly to the operating system and then terminates program operation.

(True/False)
4.8/5
(38)

Opening a file stream establishes the physical communication link between the program and the data file.

(True/False)
5.0/5
(39)

C appends the low-value hexadecimal byte ____ as the end-of-file (EOF) sentinel when a file is closed.

(Multiple Choice)
4.8/5
(32)

The file open function is called open().

(True/False)
4.9/5
(37)

The end-of-file sentinel is never counted as part of the file.

(True/False)
4.9/5
(36)

stdin and stderr frequently refer to the same device.

(True/False)
4.9/5
(33)

A physical file pointer "points to" a hardware device, such as a keyboard, screen, or printer.

(True/False)
4.7/5
(49)

Permissible file opening modes are r, w, or p, which represent reading, writing, or appending to a file.

(True/False)
4.9/5
(41)

The maximum allowable filename in current Unix versions is ____.

(Multiple Choice)
4.9/5
(39)

Notice that each file stream name, when it is declared, is preceded by a(n) ____.

(Multiple Choice)
4.7/5
(35)

The functions fgetc() and fgets() return the named constant EOF when the marker is detected.

(True/False)
4.9/5
(35)

When working with random access files, the ____ function resets the current position to the start of the file.

(Multiple Choice)
4.7/5
(36)

The statement ____ causes the string Hello World! to be printed directly at the printer.

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

Filters

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