1.
(2021高三上·绍兴月考)
把数组元素d(1)到d(n)中前5个不同的最大值降序排到d(1)到d(5)中,其中n≥10,数组d中各元素值均小于100且不同元素个数大于5。实现该功能的VB程序段如下:
d(0) = 100
For i = 1 To 5
k = i
For j = i + 1 To n
If d(j) < d(i - 1) Then
If ① Then k = j
End If
Next j
If i <> k Then t = d(i): d(i) = d(k): d(k) = t
Next i
则代码中①处的语句为( )
A . d(k) >= d(i - 1) And d(j) < d(k)
B . d(k) >= d(i - 1) Or d(j) < d(k)
C . d(k) >= d(i - 1) And d(j) > d(k)
D . d(k) >= d(i - 1) Or d(j) > d(k)