Solved

What Numbers Will Be Displayed in the List Box by the Following

Question 66

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions