试题 试卷
题型:单选题 题类:常考题 难易度:困难
海南省文昌中学2018-2019学年高一下学期信息技术段考信息试卷
x = InputBox("输入x的值:")
If x > 3 Then
If x <= 6 Then
y = 2 * x
Else
y = 3 * x
End If
y = 4 * x
Print y若x、y均是整型变量,程序运行并输入6,则y的值是( )
Dim year,t as integer
t=0
For year=1896 To 2016
t=t+1
Next year
该程序段结束后,变量year的值是( )
Private Sub Command1_Click()
Dim a(0 To 4) As Integer
Dim i As Integer
a(4) = Val(Text1.Text)
For i = 3 To 1 Step -1
a(i) = a(i + 1) / 2
Next i
Text2.Text = Str(a(i+2))
End Sub
s=0
For k =3 To 1 Step-1
If k <=1 Then x=1
If k <=2 Then x=2
If k <=3 Then x=3
s=s+x
Next k
Text1. Text= Str(s)
该程序段运行后,文本框Text1中显示的内容是( )
试题篮