i = 1: j = 10
Key = Val(Text1.Text)
Do While i <= j
m = (i + j) \ 2
If a(m) = Key Then Exit Do ′Exit Do表示退出循环
If Key Mod 2 = 1 And a(m) Mod 2 = 0 Then
ElseIf Key Mod 2 = 0 And a(m) Mod 2 = 1 Then
Else
End If
Loop
If i > j Then s = “没有找到!” Else s = “位置:” + Str(m)
Text2.Text = s
上述程序中方框处可选语句为:
①i = m + 1
②j = m - 1
③If Key < a(m) Then j = m - 1 Else i = m + 1
则(1)、(2)、(3)处语句依次是( )