当前位置: 高中信息技术 / 单选题
  • 1. (2020高一下·瑞安期末) 有如下VB程序段:

    Text1.Text = "0"

    For i = 2 To 9

      k = 0

      For j = 1 To i -1

        If a(j) < a(i) Then k = k +1

      Next j

      Text1.Text = Text1.Text + "," + Str(k)

    Next i

    已知数组a的数据序列为2,10,3,4,5,7,0,9,12,则该程序段运行后,文本框Text1中显示的内容是 (     )

    A .  1,1,2,3,4,0,6,8 B . 0,1,1,2,3,4,0,6,8 C . 1,7,2,3,4,5,0,6,8 D . 2,9,3,4,5,7,1,8,10

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