1.
(2017·浙江模拟)
【加试题】有如下程序段:For i =1 To 2
For j = 1 To 6 –i
If a(j) <a(j +1 ) Then
k =a(j):a(j)=a(j+1):a(j+1) =k
End If
Next j
Next i
数组元素a(1)到a(6)的值依次为“71,54,58,29,31,78”,经过该程序段“加工”后,数组元素a(1)到a(6)的值依次为( )
A . 29,31,54,58,71,78
B . 78,71,58,54,31,29
C . 54,29,31,58,71,78
D . 71,58,54,78,31,29