Exam 22: Im Saving for the Future Sequential Access Files

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

After creating the StreamReader object, you declare a variable to store the object in the computer's internal memory.

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

False

Before you create a StreamWriter object, you first declare a variable to store the object in the computer's internal memory.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

True

Most input and output files are composed of lines of text that are both read and written sequentially.

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

True

Most input and output files are referred to as ____ files.

(Multiple Choice)
4.7/5
(33)

The syntax for determining whether a sequential access file exists is ____.

(Multiple Choice)
4.8/5
(36)

In most cases, you assign the string returned by the ReadLine method to a String variable.

(True/False)
4.9/5
(36)

You can use the Exists method to avoid the run time error that occurs when the computer cannot locate the file you want opened for input.

(True/False)
4.9/5
(31)

Programmers refer to a sequence of characters as a(n) ____.

(Multiple Choice)
4.7/5
(45)

The syntax to close a sequential access file associated with a StreamWriter object is ____.

(Multiple Choice)
4.9/5
(40)

The ReadLine method requires you to provide the file's name.

(True/False)
4.9/5
(40)

The "doc" filename extension is commonly used when naming sequential access files.

(True/False)
4.9/5
(34)

An item of data-such as the string "Yolanda"-is viewed similarly by a human being and a computer.

(True/False)
4.7/5
(41)

Files to which data is written are called ____ files.

(Multiple Choice)
4.8/5
(39)

The ____ method can be used to read a file's contents, one line at a time.

(Multiple Choice)
4.9/5
(37)

The ____ method returns the Boolean value True if the file exists; otherwise, it returns the Boolean value False.

(Multiple Choice)
4.7/5
(35)

The syntax of the Peek method is ____.

(Multiple Choice)
4.8/5
(38)

The ReadLine method returns a string that contains the sequence of characters in the current line, including the newline character at the end of the line.

(True/False)
4.8/5
(35)

Files that are read by the computer are called ____ files.

(Multiple Choice)
4.8/5
(32)

A ____ is defined as a sequence (stream) of characters followed by the newline character.

(Multiple Choice)
4.7/5
(36)

In addition to getting data from the keyboard and sending data to the computer screen, an application can also get data from and send data to a file on a disk.

(True/False)
4.8/5
(31)
Showing 1 - 20 of 25
close modal

Filters

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