Sei sulla pagina 1di 3

1.

You code things in Visual Basic that makes applications in Visual Basic
2. Indicate what would be displayed if each of these expressions were assigned
to a label:
a) 7
b) 28
c) 10
d) 5
e) 34
f) 90
g) 2
h) -3
i) 7
j) 6 + 3 - 2
k) 6.5
l) -22
3. "Event Driven" means when X happens, do this instead of do this if it's equal
too...
4. List the Controls you learned
a) Variable.Text =
b) Variable.Click(
c) Variable
d) Application.Exit()
5. List visual differences from editing to running
a) Borders
b) Outlines of labels
c) No tabs (at the top)
6. List two ways to exit a program
a) Alt + F4
b) Click the "x"
c) Ctrl + C
d) There's usually an exit button too
7. Difference between names and text?
a) Names are what the variable is called
b) Text is what you see
8. Why Me.lblMessage.Text rather than lblMessage.Text
To show that you're referencing the form instead of anything else
9. Public Class Form1

Private Sub RadioButton1_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton1.CheckedChanged
Label1.Text = "The sum of x and y is 8"
End Sub

Private Sub RadioButton2_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton2.CheckedChanged
Me.Label1.Text = "the difference of x and y is 2"
End Sub
End Class
10.
a. 9/9/12 needs to have a procedure
b. "Display greeting" is a comment
c. "hi there" isn't assigned to a label
b) True or false
a. F
b. T
c. T
d. F
e. F
f. T
g. F
h. F
i. T
j. F
k. F
l. T
m. F
n. F
o. T
p. T
q. F
r. F
s. T
t. F

Potrebbero piacerti anche