Multiple Choice
What will be displayed by the following program when the button is clicked?
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim s As Double
s = 0
For k As Integer = 1 To 5
If k / 2 = Int(k / 2) Then
s += k
End If
Next
txtBox.Text = CStr(s)
End Sub
A) 12
B) 9
C) 15
D) 6
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q16: A list box named lstBox has its
Q17: What is wrong with the following simple
Q18: If the loop is to be executed
Q19: Which of the following are valid for
Q20: A For...Next loop cannot be nested inside
Q22: How many times will PETE be displayed
Q23: When Option Infer is set to On,
Q24: If no item in a list box
Q25: Which of the statements will unhighlight any
Q26: The following statement is valid.