试题 试卷
题型:单选题 题类:常考题 难易度:普通
江苏省2016最新高中信息技术学业水平测试选择题库主题二:信息的加工与表达
Function fac(n As Integer) As Long
fac = 1
For i = 1 To n
fac = fac * i
Next 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 Command1_Click()
Dim a(0 To 5) As Integer
Dim i As Integer ’①
a(0) = 1 '②
For i = 1 To 5
a(i) = 2 * a(i - 1) + 1 '③
Text1.Text = Str(a(6)) '④
执行该算法,依次输入a的值为3,5,2后,算法的输出结果为( )
试题篮