题目

已知数组元素a(1)到a(9)的值依次为“19,28,37,46,55,64,73,82,91”,若在Text1中输入29,并执行如下程序段后,Text2中显示的内容是(  ) Key=Val(Text1.Text)\10 Text2.Text="" i=1:j=9:f=False Do While i<=j And Not f     m=(i+j)\2     If a(m)Mod 10=Key Then         search=m:f=True     ElseIf a(m)Mod 10>Key Then         i=m+1     Else         j=m-1     End If Text2.Text=Text2.Text+Str(m) Loop A . 5,2 B . 55,37,28 C . 55,28,37 D . 5,7,8 答案:D
信息技术 试题推荐
最近更新