Back to course page.
There is a command button named cmdExit
. What is the name of
the subroutine that runs when the user clicks this button?
There is a label named lblSum
that has a property named
Caption
. There is a variable named z
.
Write the statement that displays 99
in the label's
caption.
Write the statement that displays the value of z
in the label's
caption.
Write the statement that displays the variable name z
in
the label's caption.
Write the value that x
has after running each sequence of
statements.
x = 0 x = x + 1 x = 3 * x + 2 x = 2 * (x + 3)
x = 1 If x < 5 Then x = 0 End If x = x + 1
x = 1 If x < 2 Then x = 0 Else x = 2 End If x = x + 2
x = 1 Select Case x Case 1 x = 1000 Case 2 x = 100 Case 3 x = 10 End Select
This code declares an array:
Dim s(100) as Integer
What is the name of the array?
What is the type of the array?
How many elements are there in the array?
Write the statement to assign the value 12
to the second
array element.
Write the statement to print the value of the third array element
on the form named frmData
.
Write the statement that declares an array named
dictionary
of type String
with 1000
elements.
Write the code that prints the numbers from 1 to 10, each on a line by
itself, on the frmCounter
frame.
i
and result
have after
running these statements:
result = 0 For i = 1 To 3 a(i) = i result = result + 2 * a(i) Next i
Back to top