题型:单选题 题类:常考题 难易度:普通
浙江省金华市江南中学2019-2020学年高二下学期信息技术4月阶段考试卷
n=0:i=1:j=8
Key=Val(Text 1.Text)
Do While i<=j
m=(i+j)\2
If Key=d(m) Then Exit Do ‘Exit Do表示退出循环
If Key>d(m) Then
j=m-1:n=n-1
Else
i=m+1:n=n+1
End If
Loop
Label 1.Caption=Str(n)
当输入不同的Key值, 运行该程序段后, 在标签Label1中显示的不同结果共有( )
试题篮