Back to course page.
There is a command button named cmdStart
. What is the name of
the subroutine that runs when the user clicks this button?
There is a label named lblResult
that has a property named
Caption
. There is a variable named x
.
Write the statement that displays the value of x
in the label's
caption.
Write the statement that displays the variable name x
in
the label's caption.
Write the value that x
has after running each sequence of
statements.
x = 1 x = x + 2 x = 2 * x + 1 x = 2 * (x + 1)
x = 3 If x < 2 Then x = 0 End If x = x + 1
x = 3 If x < 2 Then x = 0 Else x = 1 End If x = x + 1
x = 1 Select Case x Case 1 x = 2 Case 2 x = 3 Case 3 x = 4 End Select
Back to top