题型:单选题 题类:常考题 难易度:普通
浙江省稽阳联谊学校2020届高三上学期信息技术12月联考试卷
a(1) = 1
For i = 2 To 12
a(i) = a(i - 1) + Int(Rnd * 2) + 1
Next i
Key = Val(Text1.Text)
i = 1: j = 12: cnt = 1: flag = False
Do While i <= j And flag = False
cnt = cnt + 1
m = (i + j + 1) \ 2
If a(m) = Key Then
flag = True
ElseIf Key > a(m) Then
i = m + 1
Else
j = m - 1
End If
Loop
程序运行后,下列说法正确的是( )
试题篮