试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省杭州市五县七校2016-2017学年高二上学期期中联考信息技术试题
s = 0
For a = To 8 Step 2
s = s + a
Next a
若要使语句s = s + a执行3次,则循环变量a初值为( )
For i = 5 To 4 Step -1
k = i
For j = 6 - i To 1 Step -1
If a(j) < a(k) Then k = j
Next j
If i <> k Then
t = a(i): a(i) = a(k): a(k) = t
End If
Next i
数组元素a(1)到a(5)的值依次为“41,66,70,83,31”,经过该程序段“加工”后,数组元素a(1)到a(5)的值依次为( )
该流程图中循环部分结束后,变量s的值是 ( )
试题篮