Visual Basic
Interface.JPG
Exercise8.JPG
READ FOR WHAT TO DO.docx
Chapter 10 VB
Please remember to:
· provide appropriate names for your solution and project.
· include an informational comment block in the General Declarations section of your code.
· Chapter / Exercise (ie. Chapter 10 Exercise A, or Exercise 10a)
· A brief description of the program
· provide appropriate names to all objects that are referenced in the code.
· provide any necessary user-friendly/aesthetic adjustments to the interface.
· zip/archive your solution folder for submitting.
1) View the image and do #8. The other image is the interface you need to create.
2) Quiz questions (just bold the answer):
Question 1 (1 point)
Programmers use structure variables to store related items in an array, even when the items have different data types.
Question 1 options:
|
|
True |
|
|
False |
You cannot include an array in a structure.
Question 2 options:
|
|
True |
|
|
False |
You reserve memory locations by declaring a structure variable.
Question 3 options:
|
|
True |
|
|
False |
After declaring a StreamReader variable, you can use the ____ to open a sequential access file for input; doing this automatically creates a StreamReader object.
Question 4 options:
|
|
OpenText method |
|
|
Write method |
|
|
StreamWriter object |
|
|
ReadLine method |
To access a member of a structure variable in an array, you use the syntax ____.
Question 5 options:
|
|
arrayName( subscript). memberVariableName |
|
|
arrayName( subscript)-> memberVariableName |
|
|
arrayName( subscript)[ memberName] |
|
|
arrayName( subscript)@ memberName |
In the syntax for the PadLeft method, ____ is an integer that represents the total number of characters you want the string to contain.
Question 6 options:
|
|
totalChars |
|
|
character |
|
|
variable |
|
|
string |
You should use the ____ method to close a sequential access file as soon as you are finished using it.
Question 7 options:
|
|
Exit |
|
|
Close |
|
|
End |
|
|
Quit |
You can use the ____ to open a sequential access file for append.
Question 8 options:
|
|
CreateText method |
|
|
StreamReader object |
|
|
StreamWriter object |
|
|
AppendText method |