MCQ: Visual Basic Data Files

This quiz consists of all MCQ related to Visual Basic Data Files

Page 1 of 2

1. Sometimes, a project will need to save the information that the user inputs so that it can be used again. The information is stored and will later be accessed from a(n) _______.

A.
B.
C.
D.

2. My.Computer.FileSystem.WriteAllText(FileName, StringToWrite, AppendBoolean) ______.

A.
B.
C.
D.

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

A.
B.
C.
D.

4. Which of the following steps does NOT occur when writing data to a data file?

A.
B.
C.
D.

5. Setting the BooleanAppend argument to true in the StreamWriter constructor _______.

A.
B.
C.
D.

6. When instantiating a StreamWriter object, the name of the file on the disk _______.

A.
B.
C.
D.

7. If you intend to add data to the end of an existing data file, you should set the _______ argument of the StreamWriter to True.

A.
B.
C.
D.

8. If you intend to write data to an existing data file and it is your intention to overwrite all of the data in a file, you should _______.

A.
B.
C.
D.

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

A.
B.
C.
D.

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

A.
B.
C.
D.


 

Leave a Reply

avatar
  Subscribe  
Notify of