组卷题库 > 高中信息技术试卷库
试题详情
有如下 VB 程序段:

a(1) = "231": a(2) = "34": a(3) = "23": a(4) = "234": a(5) = "123"

For i = 1 To 4

     For j = 1 To 5 - i

         If a(j) > a(j + 1) Then t = a(j): a(j) = a(j + 1): a(j + 1) = t

     Next j Next i

执行该程序段后,数组元素 a(1)到 a(5)的数据依次为(  )

A、“23”,”231”,”234”,”34”,”123”
B、“23”,”123”,”231”,”234”,”34”
C、“23”,”34”,”123”,”231”,”234”
D、“123”,”23”,”231”,”234”,”34”
知识点
参考答案
采纳过本试题的试卷
教育网站链接