在一个窗体上添加一命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果是( )。 option base 1 Private Sub Command1_Ctick()   Dim a (5) As Integer

admin2012-03-22  23

问题 在一个窗体上添加一命令按钮控件,名为Command1,事件过程如下,则该过程的执行结果是(    )。    option base 1    Private Sub Command1_Ctick()      Dim a (5) As Integer      Dim k As Integer      Dim total As Integer      a(1)=2      a(2)=5      a(3)=4      a(4)=10      a(5)=6      For k=1 To 5        total=total+a(k)      Next k      Print total    End Sub   

选项 A、10
B、15
C、27
D、35

答案C

解析
转载请注明原文地址:https://kaotiyun.com/show/yFhp777K
0

相关试题推荐
最新回复(0)