题目内容

窗体上有一个名为Commandl的命令按钮,并有下面的程序:
Private Sub Command1_Click()
Dim art(5)As Integer
For k=1 TO 5
arr(k)=k
Next k
prog art()
For k=1 To 5
Print alT(k);
Next k
End sub
Sub prog(a()As Integer)
n=UBound(a)
For i=n To 2 step-1
For j=1 To n-1
if a(j)<a(j+1)Then
t=a(j):a(j)=a(j+1):a(j+1)=t
End If
Next j
Next i
End sub
程序运行时,单击命令按钮后显示的是

A. 1 2 3 4 5
B. 5 4 3 2 1
C. 0 1 2 3 4
D. 4 3 2 1 0

查看答案
更多问题

自动化仪表工程在系统投运前应进行()试验。

A. 稳压
B. 误差
C. 回路
D. 绝缘

A.They look at a house sitter's score report.B.They interview a house sitter's friends

A. They look at a house sitter's score report.
B. They interview a house sitter's friends.
C. They check a house sitter's references.
D. They attend a house sitter's party.

在下列的Excel表中,在C3单元格输入公式“=A2+$C$2”,则C3单元格的值为(55)。

A. 22
B. 24
C. 26
D. 28

The average surface temperature of Earth keeps around 15℃.

A. Y
B. N
C. NG

答案查题题库