Consider the code below:
Dim a() As Integer = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3}
Dim result As Integer = 0
For i As Integer = 0 To a.Length - 1
If a(i) > 30 Then
result += a(i)
End If
Next
The value of variable result will be:
a) 280
b) 154
c) 286
d) 332
c) 286
You might also like to view...
Event handlers can refer to values in other tags by using the _______.
Fill in the blank(s) with the appropriate word(s).
In Microsoft Excel 2016, the Mini toolbar appears whenever you:?
A. ?deselect a text. B. ?press the Home key on the keyboard. C. ?select a text. D. ?press the Insert key on the keyboard.
A network within an organization that uses Internet technologies is called a(n) ________
Fill in the blank(s) with correct word
If we need to do the same computation 1 million times, the power of the computer to ____, that is, to repetitively execute a block of statements, becomes quite apparent.
a. concatenate b. variable c. index d. loop