单项选择题

窗体上有一个命令桉钮,命令按钮的单击事件过程如下。运行程序后,单击命令按钮,输出结果是( )。

Private Sub Command1_click()

Dim a

a=Array(1,2,3,4,5)

Fork=1 To 4

S=S+a(k)

Next k

Print S

End Sub

A.10
B.14
C.15
D.120
<上一题 目录 下一题>
热门 试题

单项选择题
表达式Val( .123E2 )的值是( )。
A.123
B.12.3
C.0
D.123e2CD
单项选择题
设在工程中定义了下列类型: Type Stutype ino As Integer strname As String*20 strsex As String*1 smark As Single End Type 在窗体上正确使用这个类型的是下列哪个操作( )。
A.Sub Command1_Click()

Dim student As Stutype

With student

.ino=12

.Strname=smith

.strsex=男

.smark=89

End With

End Sub
B.Sub Command1_Click()

Dim Student As Stutype

With student

.ino=12

.strname="smith"

.strsex="男"

.smark=89

End With

End Sub
C.Sub Comnland1_Click()

Dim student As Stutype

With Stutype

.ino=12

.strname="smith"

.strsex="男"

.smark=89

End With

End Sub
D.Sub Command1_Click()

Dim student As Stutype

With student

.ino=12

.Strname="smith"

.strsex="男"

.smark=89

End student

End Sub
相关试题
  • 下列程序弹山对话框中按钮的个数为____...
  • 度为10的线性表进行冒泡排序,最坏情况下...
  • 下列程序的功能是将字符串“abcde”逆序打...
  • 在程序运行时,可以通过______方法来...
  • 组合框有3种不同的类型,这3种类型是下拉...