Solved

What Will Be Displayed by the Following Program When the Button

Question 21

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:

verifed

Verified

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

Related Questions