Exam 11: Data Files

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

The StreamReader object can be used to read data from a data file that has been created with a StreamWriter.

(True/False)
4.8/5
(25)

The StreamWriter's WriteLine method places an Enter (carriage return)between the items in the data file.

(True/False)
4.9/5
(43)

Visual Basic offers simplified File I/O objects and methods in the Microsoft.VisualBasic.FileIOlibrary.

(True/False)
4.9/5
(35)

What is the difference between the Write method and the WriteLine method of a StreamWriter?

(Essay)
4.9/5
(41)

The standard Windows OpenFileDialog component can be used in your VB program to allow users to browse for a folder and filename.

(True/False)
4.7/5
(35)

In order to append data to an existing data file,set the BooleanAppend argument of the StreamWriter constructor to True.

(True/False)
4.8/5
(28)

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)_______.

(Multiple Choice)
4.9/5
(36)

Visual Studio handles data files using streams.Explain the steps in writing data to a file.

(Essay)
4.9/5
(45)

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

(Multiple Choice)
4.9/5
(38)

If a program does not include exception handling,what will happen when a data file is opened with the StreamReader object and the file does not exist?

(Multiple Choice)
4.7/5
(40)

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 _______.

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(32)

You must use the Retrieve method in order to access data in a file.

(True/False)
4.8/5
(37)

You can use _______ in order to allow the user to browse and find a file at run time.

(Multiple Choice)
4.9/5
(43)

Data elements that are added to a data file in the append mode are written at the end of the file,but may later be read in random order.

(True/False)
4.8/5
(34)

The data files that are presented in Chapter 11,Saving Data in Files,are commonly used to store large amounts of data.

(True/False)
4.9/5
(41)

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

(Multiple Choice)
4.9/5
(51)

When instantiating a StreamReader,an exception will occur if the data file does not exist in the specified path.

(True/False)
4.7/5
(43)

What should be used to handle exceptions and avoid terminating the program when an exception occurs during run-time?

(Multiple Choice)
4.8/5
(42)

A StreamWriter object can be declared in the Declarations section of a program or in a procedure.

(True/False)
4.9/5
(37)
Showing 21 - 40 of 43
close modal

Filters

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