试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省台州中学2018-2019学年高二上学期信息技术第二次统练试卷
s=0
For i=1 to 5 step -2
s=s+i
Next i
执行上述代码后,下列说法正确的是( )
Function fac(n As Integer) As Long
fac = 1
For i = 1 To n
fac = fac * i
End Function
Private Sub Command1Click()
Dim s As Long, j As Integer
For j = 1 To 10
Next
Text1.Text = Str(s)
End Sub
方框中的正确语句是:( )
Private Sub Command 1_Click()
Dim i As Integer
Dim t As Integer
Dim s As String
i = 1:t = 1:n = Text1.Text
List1.Clear
Do While t< = n
s = s + “*”
If i = t Then
List1.AddItem s
t = t + 1
i=0
End If
i = i + 1
Loop
试题篮