试题

试题 试卷

logo

题型:单选题 题类:常考题 难易度:普通

浙江省临海市白云高级中学2019届高三下学期信息技术3月月考试卷

执行程序后,a数组各元素是(  )

Dim a(1 To 7) As Integer

a(1) = 14: a(2) = 15: a(3) = 0: a(4) = 11: a(5) = 13: a(6) = 21: a(7) = 17

i = 6: flag = True

Do While i > 1 And flag

   If a(i) Mod 3 = 0 And a(i) <> 0 Then

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

   ElseIf a(i) = 0 Then

     flag = flase

   ElseIf a(i + 1) Mod 2 = 1 Then

     a(i) = Abs(a(i) - a(i + 1))

   End If

   i = i - 1

Loop

A、14,0,15,4,17,13,21 B、14,15,0,11,4,17,21 C、15,14,0,11,4,17,21 D、14,15,0,11,13,4,17
举一反三
返回首页

试题篮