试题 试卷
题型:填空题 题类:模拟题 难易度:普通
浙江省杭州市2015年高考信息技术模拟卷3
Private Sub Command1_Click()
Dim I as integer
For i=1 to 10 step 2
If i>=5 then
List1.additem str(i-3)
Else
List1.additem str(i)
Next i
End Sub
For i = 1 To Len(Text1.Text)
c = Mid(Text1.Text, i, 1)
If c >= "0" And c <= "9" Then c = Chr(Asc(c) + 1)
If c >= "A" And c <= "Z" Then c = Chr(Asc(c) + 32)
s =s + c
若文本框Text1的内容为“Number 2468!”执行程序后,变量s的值为( )
Dim a(0 To 4) As Integer
Dim i As Integer
a(4) = Val(Text1.Text)
For i = 3 To 1 Step -1
a(i) = a(i + 1) / 2
Text2.Text = Str(a(i+2))
s=0
For k=1 To 5
s=s * k
Next k
Print s
试题篮