试题

试题 试卷

logo

题型:单选题 题类:常考题 难易度:困难

浙江省“温州十五校联合体”2018-2019学年高二下学期信息技术期中考试试卷

有如下VB程序段:

i = 0: j = 1

Do While j <= 5

  If a(j) <> 0 Then i = i + 1: a(i) = a(j)

  j = j + 1

Loop

For j = i + 1 To 5

  a(j) = 0

Next j

数组元素a(1)到a(5)的值依次为“0,20,0,4,31”,执行该程序段后,a(1)~a(6)各元素的值依次为(  )

A、4,20,31,0,0 B、31,20,4,0,0 C、0,0,20,4,31 D、20,4,31,0,0
举一反三
返回首页

试题篮