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

Computer Science & Information Technology

You might also like to view...

The most fundamental type of machine instruction is the _________ instruction.

A. conversion B. data transfer C. arithmetic D. logical

Computer Science & Information Technology

A collision occurs when

A) objects whose class types are not related through inheritance have the same hashcode B) objects instantiated from different generic types have the same hashcode C) objects whose class types are not related through inheritance have hashcodes one of which divides the other D) objects whose values are not equal have the same hash code

Computer Science & Information Technology