当前位置: 高中信息技术 / 单选题
  • 1. (2017高二下·浙江开学考) 有如下程序段:

    i = 1

    Do While i <= 5

          If i = 0 or a(i - 1) <= a(i) Then

            i = i + 1

          Else

            t = a(i): a(i) = a(i - 1): a(i - 1) = t

            i = i - 1

          End If

    Loop

    For i = 1 To 5

          List2.AddItem  a(i)

    Next i

    数组元素a(0)到a(5)的值依次为“0,71,22,48,79,27”,经过该程序段“加工”后,数组元素a(4)的值为(   )

    A . 0 B . 71 C . 48 D . 27

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