题目内容 (请给出正确答案)
[主观题]

有如下一个Sub过程:Sub mlt (ParamArray numbers()) n=1 For Each x In numbersn=n * x Next x P

有如下一个Sub过程: Sub mlt (ParamArray numbers()) n=1 For Each x In numbers n=n * x Next x Print n End Sub在一个事件过程中如下调用该Sub过程: Private Sub Coinmand1_Click() Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer a=1 b=2 c=3 d=4 mlt a,b,c,d End Sub 则运行该程序,结果为______。

A.12

B.24

C.36

D.48

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“有如下一个Sub过程:Sub mlt (ParamArray…”相关的问题

第1题

有如下一个Sub过程:Sub mlt(ParamArray numbers()) n=1 For Each x In numbers n=n*x Next

有如下一个Sub过程: Sub mlt(ParamArray numbers()) n=1 For Each x In numbers n=n*x Next x Print n End Sub 在一个事件过程中如下调用该Sub过程: Private Sub Command1_Click() Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer a=1 b=2 c=3 d=4 mlt a,b,c,d End Sub 该程序的运行结果为()。

A.12

B.24

C.36

D.48

点击查看答案

第2题

有如下一个函数过程: Function Fun(a As Integer) Static c b=0:b=b+1:c=c+1 Fun=a+b+c End Func

有如下一个函数过程:

Function Fun(a As Integer)

Static c

b=0:b=b+1:c=c+1

Fun=a+b+c

End Function

在窗体上添加一个命令按钮,事件过程如下:

Private Sub Command1_Click()

Dim a As Integer

a=2

For i=1 To 3

Print Fun(a);

Next

End Sub

运行该程序,单击命令按钮,输出结果是

A.4 4 4

B.4 5 6

C.6 7 8

D.4 7 9

点击查看答案

第3题

有如下一个函数过程:Function Fun(a As Integer)Static cb=0:b=b+1:c=c+1Fun=a+b+cEnd Function

有如下一个函数过程: Function Fun(a As Integer) Static c b=0:b=b+1:c=c+1 Fun=a+b+c End Function 在窗体上添加一个命令按钮,事件过程如下: Private Sub Command1_Click() Dim a As Integer a=2 For i=1 To 3 Print Fun(a); Next End Sub 运行该程序,单击命令按钮,输出结果是

A.4 4 4

B.4 5 6

C.6 7 8

D.4 7 9

点击查看答案

第4题

有如下一个函数过程:Function Fun(a As Integer)Static C b=0:b=b+1:c=c+1 Fun=a+b+cEnd Funct

有如下一个函数过程: Function Fun(a As Integer) Static C b=0:b=b+1:c=c+1 Fun=a+b+c End Function 在窗体上添加一个命令按钮,事件过程如下: Private Sub Command1_Click() Dim a As Integer a=2 For i=1 To 3 Print Fun(a); Next End Sub 运行该程序,单击命令按钮,输出结果是

A.4 4 4

B.4 5 6

C.6 7 8

D.4 7 9

点击查看答案

第5题

有如下过程代码:Sub var_dim()static numa As IntegerDim numb As Integernuma=numa+2.numb=nu

有如下过程代码:

Sub var_dim()

static numa As Integer

Dim numb As Integer

numa=numa+2.

numb=numb+1

print numa;mub

End Sub

连续3次调剧var_dim过程,第3次调用时的输出是()。

A.2 1

B.2 3

C.6 1

D.6 3

点击查看答案

第6题

有如下过程代码:Sub var_dim()Static numa AS IntegerDim numb As Integernuma=Duma+2numb=numb+

有如下过程代码:

Sub var_dim()

Static numa AS Integer

Dim numb As Integer

numa=Duma+2

numb=numb+1

print numa;mumb

End Sub

连续3次调用vardim过程,第3次调用时的输出是

A.2 1

B.2 3

C.6 1

D.6 3

点击查看答案

第7题

有如下过程:Sub SS(ByVal X,ByRef Y,Z) X=X + 1 Y=Y + 1 Z=Z + 1 End Sub执行该过程的事件过程如

有如下过程:

Sub SS(ByVal X,ByRef Y,Z)

X=X + 1

Y=Y + 1

Z=Z + 1

End Sub

执行该过程的事件过程如下:

Private Sub Command1_Click()

A = 1

B = 2

C = 3

Call SS(A,B,C) Print A;B;C

End Sub

则该程序的执行结果是【 】。

点击查看答案

第8题

有如下自定义过程:Sub test(x As Integer)x =X *2+1If x<6 Then Call test(x)End Ifx=x* 2 + 1Pr

有如下自定义过程: Sub test(x As Integer) x =X *2+1 If x<6 Then Call test(x) End If x=x* 2 + 1 Print x; End Sub调用该过程的事件过程如下:Private Sub Command1_Click() test 2End Sub则该段程序的执行结果是______ 。

A.12

B.23 47

C.23

D.5 10

点击查看答案

第9题

有如下过程Sub Area(ByVal a As single,ByRef s As Single) s=a*aend sub执行下面程序段后,变量s的值为()Dim a!,s!a=5s=15Call Area(a,s)。

A.25

B.15

C.20

D.10

点击查看答案

第10题

(22 )有如下过程代码:Sub var_dim()Static numa As IntegerDim numb As Integernuma=numa+2numb

(22 )有如下过程代码:

Sub var_dim()

Static numa As Integer

Dim numb As Integer

numa=numa+2

numb=numb+1

print numa;numb

End Sub

连续 3 次调用 var_dim 过程,第 3 次调用时的输出是

A ) 2 1

B ) 2 3

C ) 6 1

D ) 6 3

点击查看答案
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信