试题 试卷
题型:单选题 题类:模拟题 难易度:普通
浙江省普通高校招生信息技术选考模拟卷(三)
该同学绘制了该程序的流程图,如下图所示:
S=0 :T=1
For i=1 to 100
S=s+i*T
T=-T
Next i
①
S=0
S=s+i*(-1)^(i+1)
②
S=s+i*(-1)^i
③
S=0:S1=0:S2=0
For i=1 to 50
S1=s1+2*i-1
S2=s2+2*i
S=s1-s2
④
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各个元素的值,不可能的是( )
试题篮