Visual Basic

profiletheman04
chapter_10vb.zip

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)

  Question 1 Unsaved

Programmers use structure variables to store related items in an array, even when the items have different data types.

Question 1 options:

True

False

Question 2 (1 point)

  Question 2 Unsaved

You cannot include an array in a structure.

Question 2 options:

True

False

Question 3 (1 point)

  Question 3 Unsaved

You reserve memory locations by declaring a structure variable.

Question 3 options:

True

False

Question 4 (2 points)

  Question 4 Unsaved

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

Question 5 (2 points)

  Question 5 Unsaved

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

Question 6 (2 points)

  Question 6 Unsaved

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

Question 7 (2 points)

  Question 7 Unsaved

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

Question 8 (2 points)

  Question 8 Unsaved

You can use the ____ to open a sequential access file for append.

Question 8 options:

CreateText method

StreamReader object

StreamWriter object

AppendText method

image1.gif

image2.wmf