Exam 9: Files, Printing, and Structure
Exam 1: Introduction to Programming and Visual Basic40 Questions
Exam 2: Creating Applications With Visual Basic36 Questions
Exam 3: Variables and Calculations41 Questions
Exam 4: Making Decisions39 Questions
Exam 5: Lists and Loops36 Questions
Exam 6: Procedures and Functions31 Questions
Exam 7: Multiple Forms, Modules, and Menus35 Questions
Exam 8: Arrays and More34 Questions
Exam 9: Files, Printing, and Structure36 Questions
Exam 10: Working With Databases32 Questions
Exam 11: Developing Web Applications33 Questions
Exam 12: Classes, Collections, and Inheritance36 Questions
Select questions type
Which of the following declares a structure data type named Complex, which has two fields named Real and Imaginary, both of which are of type Double?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
B
This method is used to add more data to the end of an existing file.
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
B
Which of the following code segments creates a new file named address.txt, writes the following two lines to the file, and then closes the file? Bob Johnson
Somewhere USA
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
C
When a file is selected from an Open dialog box, the path and file name are stored in the control's ______property?
(Multiple Choice)
4.8/5
(34)
Which of the following statements are not true about text files?
(Multiple Choice)
4.7/5
(35)
Which of the following code segments writes the contents of three parallel arrays named strStudentName, intID, and strMajor to a file in the format below? Assume all arrays have the same number of elements. Vince Student, 1234, Computer Science
Nancy Student, 4321, Electrical Engineering
(Multiple Choice)
4.7/5
(36)
An application must first ______a file before it can be used.
(Multiple Choice)
4.8/5
(44)
An Open dialog box displays the current folder unless the ______property specifies a different path.
(Multiple Choice)
4.7/5
(41)
What does the following line do? Do Until inputFile.EndOfStream
(Multiple Choice)
4.7/5
(42)
To left justify the columns in the String.Format method, use preceding the column width.
(Multiple Choice)
4.7/5
(36)
In order to retain data while a program is not running, data must be saved in __________.
(Multiple Choice)
4.9/5
(38)
When the PrintDocument control's Print method is executed, it triggers the ______event.
(Multiple Choice)
4.8/5
(40)
The following statements describe advantages of the Open and Save As dialog boxes except __________.
(Multiple Choice)
4.9/5
(40)
This method places an item of data in a file without terminating the line.
(Multiple Choice)
4.8/5
(36)
To serve as a visual reminder that the structure or class name is not a variable, structure names and class names should ___________.
(Multiple Choice)
4.9/5
(39)
When opening a file, use this method to determine whether a file exists before you attempt to open it:
(Multiple Choice)
4.8/5
(42)
The StreamReader object's ______is used to determine when the end of the file has been reached.
(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 36
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)