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

    Const n= 6

    Dim a(0 To n) As String

    Dim i As Integer, j As Integer

    For i=2 To 4

      a(0)=a(i): j=i- 1

      Do While a(0)<a(j)

        a(j+1)= a(j)

        j=j- 1

      Loop

      a(j+1)= a(0)

    Next i

    已知字符串数组元素a(1)到a(6)的原始数据为"118","36","98","15","88","2",执行该程序段后,数组元素a(1)到a(6)的值依次为(    )

    A . "15","36","98","118","88","2" B . "118","15","36","98","88","2" C . "2","15","36","118","88","98" D . "2","15","36","88","98","188"

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