试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省“温州十五校联合体”2018-2019学年高一下学期信息技术期中考试试卷
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
方框中的正确语句是:( )
Dim n As Integer, s As Integer, i As Integer
n=Val(Text1.Text)
s=0
For i=1 To n Step 2
s=s+i
Text2.Text=Str(s)
图1
i=1
Do While i<=n
i=i+2
Loop
图2
当n的值为10时,关于该两段程序,下列说法不正确的是( )
执行该算法,依次输入a的值为3,5,2后,算法的输出结果为( )
试题篮