题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-23 10:52:26

[填空题]设有命令按钮Commandl的单击事件过程,代码如下:
Private SubCommandl_Click( )
Dim a(3,3) As Integer
For i=1 To 3
For i=1 To 3
a(i,j) =i*j+i+j
Next j
Next i
Sum=0
Fori=1 To 3
Sum=Sum+a(i,4-i)
Next i
MsgBox Sum
End Sub
运行程序,单击命令按钮,消息框输出结果是______。

更多"设有命令按钮Commandl的单击事件过程,代码如下: Priva"的相关试题:

[单项选择]设有命令按钮Commandl的单击事件过程,代码如下:
Private Sub Commandl_Click( )
Dima(30)As Integer
Fori=1 To 30
a(i)=Int(Rnd*100)
Next
For Each arrltem In a
IfarrltemMod7=0 ThenPrintarrItem;
Ifarrltem>90ThenExitFor
Next
End Sub
对于该事件过程,以下叙述中错误的是( )。
A. a数组中的数据是30个100以内的整数
B. 语句ForEacharrItem Ina有语法错误
C. Ifarrltem Mod7=0……语句的功能是输出数组中能够被7整除的数
D. Ifarrltem>90……语句的作用是当数组元素的值大于90时退出For循环
[填空题]窗体上命令按钮Commandl的事件过程如下: Private Sub Command1_Click( ) Dim total As Integer total=s(1)+s(2) Print total End Sub Private Function s(m As Integer)As Integer Static x As Integer For i=1 To m x=x+1 Next i s=x End Function 运行程序,第3次单击命令按钮Command1时,输出结果为【 】。
[填空题]窗体上命令按钮Commandl的事件过程如下: Private Sub Command1_Click( ) Dim total As Integer total=s(1)+s(2) Print total End Sub Private Function s(m As Integer)As Integer Static x As Integer For i=1 To m x=x+1 Next i s=x End Function 运行程序,第3次单击命令按钮Command1时,输出结果为 【7】
[填空题]

窗体上命令按钮Commandl的事件过程如下:
Private Sub Command1_Click( )
Dim total As Integer
total=s(1)+s(2)
Print total
End Sub
Private Function s(m As Integer)As Integer
Static x As Integer
For i=1 To m
x=x+1
Next i
s=x
End Function
运行程序,第3次单击命令按钮Command1时,输出结果为()。


[填空题]设有命令按钮Command 1的单击事件过程,代码如下: Private Sub Command1_Click( ) Dima(3,3)As Integer For i=1 To 3 For j=1 To 3 a(i,j)=i*j+i+j Next j Next i Sum=0 For i=1 To 3 Sum=Sum+a(i,4-i) Next i MsgBox Sum End Sub 运行程序,单击命令按钮,消息框输出结果是______。
[填空题]设有命令按钮Command 1的单击事件过程,代码如下:
Private Sub Command1_Click( )
Dima(3,3)As Integer
For i=1 To 3
For j=1 To 3
a(i,j)=i*j+i+j
Next j
Next i
Sum=0
For i=1 To 3
Sum=Sum+a(i,4-i)
Next i
MsgBox Sum
End Sub
运行程序,单击命令按钮,消息框输出结果是______。
[单项选择]窗体上有一个命令按钮,命令按钮的单击事件过程如下。运行程序后,单击命令按钮,输出结果是
Private Sub Command1_Click( )
Dim a
a = Array(1,2,3,4,5)
For k = 1 To4
s=s+a(k)
Next
Print S
End Sub
A. 10
B. 14
C. 15
D. 120
[填空题]设有命令按钮Command1的单击事件过程,代码如下: Private Sub Command1_Click( ) Dima(3,3)As Integer For i=1 To 3 For j=1 To 3 a(i,j)=i*j+i+j Next j Next i Sum=0 For i=1 To 3 Sum=Sum+a(i,4-i) Next i MsgBox Sum End Sub 运行程序,单击命令按钮,消息框输出结果是______。
[单项选择]窗体上有一个命令按钮,命令按钮的单击事件过程如下。运行程序后,单击命令按钮,输出结果是( )。

Private Sub Command1_Click( )

Dim a

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

For k=1 To 4

S=s+a(k)

Next k

Print s

End Sub
A. 10
B. 14
C. 15
D. 120

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码