试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省普通高中信息技术学业水平冲刺预测卷(八)
Dim i As Integer, s As Integer
s = 0
For i = 1 To 20
If i Mod 3 = 2 And i Mod 5 = 3 Then s = s + i
Next i
Label1.Caption = str(s)
执行以上程序后,标签Label1中显示的内容为( )
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
Text1.Text=Str(c)
该程序段运行后,文本框Text1中显示的内容是( )
试题篮