试题 试卷
题型:单选题 题类:模拟题 难易度:容易
2017年浙江省高考信息技术模拟试卷(二)
则最后得到的字符串是:( )
Private Sub Command1_Click()
Dim s As Integer
Dim n As Integer
Dim i As Integer
n = Val(Text1.Text)
s = 1
For i = 2 To n
s = s * i
Next i
Label1.Caption = Str(n) + "!=" + Str(s)
End Sub
Dim s As Integer, j As Integer
s = 0
For j = 1 To 10
If j Mod 2 <> 0 Then
s = s + j
End If
Next j
Label1.Caption = Str(s)
Dim x As String, y As String
Dim ans As Integer
x=“5”:y=“20”:ans=0
If x>y Then ans=Val(x)Else ans=Val(y)
ans=ans+Val(x+y)
Text1.Text=Str(ans)
程序运行完后,文本框Text1中显示的是:( )
试题篮