试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省“七彩阳光”2020届新高考研究联盟高三信息技术12月适应性考试试卷
If a>b Then t=a:a=b:b=t s=a+b
a=s-a b=s-b
已知变量a和b中的值均为正整数,且a的值大于b的值,执行该程序段后,值最终未发生改变的变量是( )
Private Sub Command1_Click()
Dim s As String, a As String, t As String
s = Text1.Text: t = ""
For i = 1 To Len(s)
a = Mid(s, i, 1)
If a >= "0" And a <= "9" Then
t = t + a
ElseIf a = "!" Then
t = ""
ElseIf t <> "" Then
List1.AddItem t
End If
Next i
End Sub
执行程序时,在文本框 Text1 中输入“12+34=46!789ok”(不包括双引号),单击按钮Command1后,在列表框List1中显示的结果是( )
a=2
b=1
Do While b<=4
a=a+b
b=a+b
Loop
Text1.Text=Str(a+b)
则运行该程序段后,文本框Text1上显示( )
s = 0 : i = 1
Do while
s = s + i
i = i + 2
该程序运行后,变量s的值等于25,则程序划线处的语句是( )
试题篮