10.下列VB程序段功能为:在文本框 Text中显示整型数组元素a(1)到a(9)中的最小值和最大值。
amin= a(1):amax=a(1)
i=2:j=9
Do While i <= j
If a(i) > a(j) Then
(1)
(2)
Else
(3)
(4)
End If
i=1:j=j-1
Loop
Text 1. Text= Str(amin)+"," Str(amax)
上述程序段中方框处可选语句为:
①If a(j)>amax Thenamax =a(j)
②If a(j)< amin Thenamin =a(j)
③If a(i)<amin Thenamin =a(i)
④Ifa(i)>amin Thenamin =a(i)
则(1)(2)(3)(4)处语句依次可为( )
(A)④③②①
(B)④②③①
(C)③②④①
(D)③①④②
参考答案
继续答题:下一题