试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省高一下学期信息技术期末考试试卷
该流程图中循环部分结束后,变量s的值是 ( )
i = 1: j = 10: temp = a(5)
Do While a(j) > temp j = j - 1
Loop
Do While a(i) < temp i = i + 1
temp = a(i) :a(i) = a(j):a(j) = temp
数组元素a(1)到a(10)的值依次为“36 91 36 17 93 99 2 9 97 97”,执行该程序段后,a(5)的值为( )
依次输入x的值为5、3、-1后,该算法的输出结果为( )
a(I)=68: a(2)=88: a(3)=76: a(4)= 60: a(5)=98: a(6)=100: a(7)= 64: a(8)=85: a(9)=99: a(10)=59
For i=1 To 9
b(i)=Abs(a(i+1)-a(i))
c(b(i)\10)= c(b(i)\10) + 1
Next i
For i=0 To 10
If c(i)> 0 Then Label1.Caption = Label1.Caption + "" + Str(c(i))
数组c各元素初值为0,执行该程序段,标签Label 1上显示的内容是( )
试题篮