在窗体上绘制一个名称为Commandl的命令按钮,然后编写如下程序:
Option Base 1
Private Sub Commandl_Click( )
Dim c As Integer,d As Integer
d=0
c=6
x=Array(2,4,6,8,10,12)
Fori=1 To 6
1fx(i)>c Then
d=d+x(i)
c=x(i)
Else
d=d-c
End If
Nexti
Print d
End Sub
程序运行后,如果单击命令按钮,则在窗体上输出的内容为( )。

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 14:59:58 免费下载:《单项选择》Word试卷

在窗体上绘制一个名称为Commandl的命令按钮,然后编写如下程序:
Option Base 1
Private Sub Commandl_Click( )
Dim c As Integer,d As Integer
d=0
c=6
x=Array(2,4,6,8,10,12)
Fori=1 To 6
1fx(i)>c Then
d=d+x(i)
c=x(i)
Else
d=d-c
End If
Nexti
Print d
End Sub
程序运行后,如果单击命令按钮,则在窗体上输出的内容为( )。
A.10
B.16
C.12
D.20

在窗体上绘制一个名称为Commandl的命令按钮,然后编写如下程序:  Option Base 1  Private Sub Commandl_Click( )

本题关键词:控制按钮,编制程序,出门按钮,体温绘制图,救助呼叫按钮,命令型,按钮联锁式装置,按钮式保护装置,按钮式防护装置,命令标志;

微信扫码获取答案解析
下载APP查看答案解析