题型:单选题 题类:模拟题 难易度:困难
浙江省杭州二中2017-2018学年高三信息技术选考仿真考试试卷
Dim i As Integer,j As Integer,flag As Boolean,t As Integer
i=1.j=6:flag=False:key=56
Do While i<=i
m=i+(j-i)\2
If a(m)<=key Then
i=m+1
Else
j=m-1:flag=True
End If
Loop
If flag Then t=i Else t=-1
数组元素a(1)到a(6)的值依次为10,18,25,30,45,56。该段程序运行后,t的值是( )
试题篮