题型:综合题 题类:常考题 难易度:普通
浙江省高中信息技术 解析算法及程序实现同步练习
Private Sub Command1_Click( )
Dim t1 As Integer, t2 As Integer
Dim i As Integer, t As Integer
Dim f As Single ‘f存储华氏温度值
List1.Clear
t1=Val(Text1.Text)
t2=Val(Text2.Text)
If ① Then ‘(选填字母,从下列A、B、C、D四个选项中选取一项)
t=t1:t1=t2:t2=t
End If
i=t1
Do While ② ‘(选填字母,从下列A、B、C、D四个选项中选取一项)
f=i*9/5+32 ‘摄氏温度转换为华氏温度
List1.AddItem Str(i)+“ ”+Str(f)
i= ③ ‘(填程序代码)
Loop
End Sub
划线处应填① ② ③
A.i<=t2 B.f<=t2 C.t1>t2 D.i<f
试题篮