Multiple Choice
What numbers will be displayed in the list box by the following code when the button is clicked?
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim num As Integer = 7
Do
num += 1
lstBox.Items.Add(num)
Loop Until (num > 6)
lstBox.Items.Add(num)
End Sub
A) 7
B) 8
C) 7 and 8
D) 8 and 8
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q61: A list box named lstBox has its
Q62: _calculate the sums of numerical values in
Q63: The following two sets of code
Q64: If the counter variable of a For...Next
Q65: What is one drawback in using non-integer
Q67: A variable declared inside a Do loop
Q68: What numbers will be displayed in the
Q69: In a For...Next loop, the initial value
Q70: What will be displayed by the following
Q71: Which of the following loops will always