试题 试卷
题型:单选题 题类:模拟题 难易度:普通
浙江省杭州市2015年高考信息技术模拟卷8
Private Sub Command1_Click()
Dim n As Integer, i As Integer, s As String
n = Val(Text1.Text)
s = ""
For i = 1 To 2 * n - 1
If i <= n Then ① Else ②
Next i
Label1.Caption = s
End Sub
为实现以上功能,划线①②处应分别填写( )
Dim a(1 To 10) As Integer,i As Integer,j As Integer
a(1)=1
a(2)=1
For i=3 To 5
a(i)=1
For j=i-1 To 2 Step -1
a(j)=a(j)+a(j-1)
Next j
Text1.Text=Str(a(3))
该程序段运行后,在文本框Text1中显示的内容是( )
T=1:K=1
Do While K<=5
T=T*K
K=K+2
Loop
试题篮