题型:单选题 题类:常考题 难易度:普通
浙江省瑞安市上海新纪元高级中学2019-2020学年高二下学期信息技术期末考试试卷
Key = Val(Text1.Text)
i = 1: j = 10: c = 0
Do While i <= j
m = (i + j) \ 2
c = c + 1
If a(m) >= Key Then j = m – 1 Else i = m + 1
Loop
Text2.Text = Str(c) + Str(i) + Str(j) + Str(m)
数组元素a(1)至a(10)的值依次为“8,10,12,15,15,15,21,34,45,66”。在文本框Text1中输入数值15,执行该程序段后,文本框Text2中显示的内容是( )
试题篮