In Exercises 12 and 14 identify the errors. (2points each)
12. Private Sub btnDisplay_Click(…)Handles btnDisplay.Click
For i As Integer = 1 To3
lstBox.Items.Add(I & “ ”& 2 ^ i)
End Sub
14. Private Sub btnDisplay_Click(…)Handles btnDisplay.Click
For j As Integer = 1 To 4 Step0.5
lstBox.Items.Add(j)
Next
End Sub
In Exercise 16 rewrite the program using For . . . Nextloop. (2 points each)
16. Private Sub btnDisplay_Click(…)Handles btnDisplay.Click
lstBox.Items.Add(“hello”)
lstBox.Items.Add(“hello”)
lstBox.Items.Add(“hello”)
lstBox.Items.Add(“hello”)
End Sub
Expert Answer
An answer will be send to you shortly. . . . .