试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省瑞安中学2015-2016学年高一下学期期初考试技术(信息技术部分)
s = 0
For i = _____ To 2
s = s + i
Next i
若要使语句s = s + i执行2次,则循环变量i初值为( )
Private Sub Command1_Click()
For i=1 To 4
s=””
For j=1 To 7
If Then
s=s+“*“
Else
s=s+” ” ‘双引号内为1个空格
End If
Next j
List1.AddItem s
End Sub
则方框中的语句是 ( )
Dim a(1 To 5) As Integer
a(1) = 1
For i = 2 To 5
a(i) = Int(Rnd() * 3) + 3
If a(i) Mod 2 = 1 Then
a(i) = a(i) + a(i - 1)
a(i) = a(i) / 2
执行程序后,a数组各元素可能是( )
试题篮