试题 试卷
题型:单选题 题类:模拟题 难易度:普通
浙江省杭州市2015年高考模拟命题比赛信息技术(6)
执行该算法,当x的值为5时( )
s=0
For i=1 to 5 step -2
s=s+i
Next i
执行上述代码后,下列说法正确的是( )
For i=1 to 30
If i mod 5=0 then
i=i+6
end if
next i
Private Sub Command1_Click()
Dim i As Integer
Dim a(10)As Integer ‘①
For i=1 To 10 ‘②
a(i)=Rnd* 100 ‘③
Label1.Caption=Str(a(i)) ‘④
End Sub
x=Val(Text1.Text)
If x>3 Then
If x<=6 Then y=2*x
Else y=3*x
Else
y=4*x
End If
Print y
若程序运行时在文本框Text1中输入6,则y的值是 ( )
试题篮