试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省杭州地区重点中学2018-2019学年高二下学期信息技术期中考试试卷
a(1) = 2
For i = 2 To 3
a(i) = a(i - 1) - Int(Rnd() * 2)
If i Mod 2 = 1 Then
a(i) = a(i) + 1
Else
a(i) = a(i) - 1
End If
Next i
执行程序后,a(2)和a(3)的值不可能的是( )
Dim a(1 To 5) As Integer
t=0
For i = 1 To 5
a(i) = Int(Rnd * 30 + 10)
t = t + a(i) \ 10
For j = 1 To t \ 3
If j Mod 2 = 1 Then a(j) = a(j) + 1 Else a(j) = a(j) - 1
Next j
运行程序后,数组a各个元素的值,不可能的是( )
试题篮