题型:单选题 题类:常考题 难易度:困难
浙江省温州市新力量联盟2017-2018学年高二下学期信息技术期末考试试卷
Dim a(1 To 6) As Integer
a(1) = 33: a(2) = 24: a(3) = 45: a(4) = 16: a(5) = 77: a(6) = 8 For i = 1 To 3
For j = 5 To i + 1 Step -1
If a(j - 1) > a(j) Then t = a(j - 1): a(j - 1) = a(j): a(j) = t
Next j
If j Mod 2 = 0 Then i = i + 1 Next i
执行该程序段后,a(1)到 a(6)分别为 ( )
原始数据 | 65 | 57 | 59 | 44 | 45 | 69 |
第1遍 | 44 | 65 | 57 | 59 | 45 | 69 |
第2遍 | 44 | 45 | 55 | 57 | 59 | 69 |
第3遍 | 44 | 45 | 57 | 65 | 59 | 69 |
… | … | … | … | … | … | … |
试题篮