试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省温州市苍南县巨人中学2014-2015学年高二下学期期中考试信息技术试题
S=0
For i = to 5
S = s+i
Next i
该程序运行后,循环体 S = s+i被执行4次,则循环变量i的初值是( )
Dim i As Integer,s As Integer
s=0
For i=2 To ________ Step 2
s=s+i
Label1.Caption=Str(s)
s = 0 : i = 1
Do while
s = s + i
i = i + 2
Loop
该程序运行后,变量s的值等于25,则程序划线处的语句是( )
Private Sub Command1_Click()
Dim i As Integer, n As Integer
Dim s1 As String, s2 As String, c As String
s1=Text1.Text
s2=” ”
n=Len(s1)
For i=1 To n
c=Mid(s1,i,1)
s2=c+s2
Text2.Text=s2
End Sub
试题篮