试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省丽水市2018-2019学年高二下学期信息技术期末考试试卷
Dim a(1 To 5) As Integer, i As Integer, c As Integer
a(1)=2:a(2)=1:a(3)=3:a(4)=4:a(5)=5
c=0
For i=3 To 5
If a(i-2)+a(i-1)=a(i) Then c=c+1
Next i
Text1.Text=Str(c)
该程序段运行后,文本框Text1中显示的内容是( )
For i=1 to n
j = 1
a(j)=a(j)+1
Do While a(j)>7
a(j)=0 : j=j+1 : a(j)=a(j)+1
Loop
当n=102时,执行程序结束后数组a中各元素相加的和为( )
试题篮