Exam 11: Data Files

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

The Peek method reads the next data element in a data file.

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

False

VbCrLf is a VB intrinsic constant for a carriage return and a line feed.

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

True

Using a text editor such as Notepad,you can view the contents of a data file with a .txt file extension.

Free
(True/False)
4.7/5
(33)
Correct Answer:
Verified

True

In the statement,PhoneStreamWriter.WriteLine(NameTextBox.Text),NameTextBox.Text refers to _______.

(Multiple Choice)
4.9/5
(31)

A delimited file is a data file that has all of the data stored on one line.

(True/False)
4.8/5
(39)

If you use the following line of code: Dim TestStreamWriter as New StreamWriter("Test.txt")and the file,Test.txt,already exists,a new file will be created and the existing file will be overwritten.

(True/False)
4.9/5
(30)

What is the purpose of "WriteLine" in the following statement? PhoneStreamWriter.WriteLine(NameTextBox.Text)

(Multiple Choice)
4.9/5
(35)

Each element in a data file must be read in the same sequence as it was written.

(True/False)
4.9/5
(30)

New data will be appended to the existing data file if you are using a StreamWriter that specifies the name of a data file that already exists and the code does not include a value for the BooleanAppend argument.

(True/False)
4.8/5
(41)

Use the StreamReader's Peek method to determine if there is more data in a file.

(True/False)
4.9/5
(40)

The StreamReader is used to create a data file.

(True/False)
4.8/5
(40)

Which of the following will occur if you are opening a data file with the StreamReader object and the file does not exist?

(Multiple Choice)
4.8/5
(34)

The WriteAllText()method reads data from a text file.

(True/False)
4.9/5
(32)

When you are finished working with a data file,you should _______ the file.

(Multiple Choice)
4.7/5
(35)

You can load data from a data file into a list box during run time by looping through the file and adding the file elements into the list.

(True/False)
4.7/5
(32)

The StreamWriter's Close method does not always release the information in the buffer that is related to that file.

(True/False)
4.8/5
(29)

It is not necessary to use a Try/Catch block when declaring a StreamReader object.

(True/False)
4.9/5
(38)

When reading data in a data file,the data will be read _______.

(Multiple Choice)
4.8/5
(36)

A new data file will be created if the filename does not exist when declaring a new StreamWriter object.

(True/False)
4.8/5
(38)

The _______ method of My.Computer.FileSystem is used to read an entire file into a single string.

(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 43
close modal

Filters

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