当前位置: 高中信息技术 / 单选题
  • 1. (2020高三上·浙江月考) 有如下 VB 程序段:

    a(1) = 13: a(2) = 22: a(3) = 36: a(4) = 42: a(5) = 50: a(6) = 58: a(7) = 62: a(8) = 70

    i = 1: j = 8: count = 0

    Randomize

    key = Int(Rnd * 100 )

    Do While i <= j

        m = (i + j + 1) \ 2

        If a(m) >= key Then

            count = count * 2 + 1

            j = m - 1

        Else

            count = count * 2

            i = m + 1

        End If

    Loop

    执行该程序段后,count的值不可能的是(   )

    A . 15 B . 14 C . 7 D . 6

微信扫码预览、分享更方便