Exam 11: Data Files
Exam 1: Introduction to Visual Basic 201054 Questions
Exam 2: User Interface Design74 Questions
Exam 3: Variables, Constants, and Calculations58 Questions
Exam 4: Decisions and Conditions51 Questions
Exam 5: Menus, Common Dialog Boxes, Sub Procedures, and Function38 Questions
Exam 6: Multiform Projects69 Questions
Exam 7: Lists, loops, and Printing76 Questions
Exam 8: Arrays and Collections50 Questions
Exam 9: Web Applications66 Questions
Exam 10: Database Applications43 Questions
Exam 11: Data Files43 Questions
Exam 12: OOP: Creating Object-Oriented Programs51 Questions
Exam 13: Graphics, Animation, Sound, and Drag-And-Drop62 Questions
Exam 14: Additional Topics in Visual Basic60 Questions
Select questions type
The Peek method reads the next data element in a data file.
Free
(True/False)
4.8/5
(40)
Correct Answer:
False
VbCrLf is a VB intrinsic constant for a carriage return and a line feed.
Free
(True/False)
4.8/5
(27)
Correct Answer:
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:
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)