题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-03-29 19:55:56

[单项选择]单击命令按钮时,下列程序的执行结果是( )。   Private Sub Command1_Click( )     Dim a As Integer,b As Integer,C As Integer     a=3     b=4     c=5     Print SecProc(c,b,a)   End Sub   Function FirProc (x As Integer,y As Integer,z As Integer)     FirProc=2 * x + y + 3 * z+2   End Function   Function SecProc (x As Integer,y As hteger,z As Integer)     SecProc=FirProc(z,x,y)+x+7   End Function
A. 13
B. 16
C. 36
D. 33

更多"单击命令按钮时,下列程序的执行结果是( )。   Privat"的相关试题:

[单项选择]单击命令按钮时,下列程序的执行结果是 Private Sub Commandl_Click( ) Dim a As Integer,b As Integer,c As Integer a=3:b=4:c=5 Print SecProc(c,b,a) End Sub Function FirProc(x As Integer,y As Integer,z As Integer) FirProc=2*x+y+3*z End Function Function SecProc(x As Integer,y As Integer,z As Integer) SecProc=FirProc(z,x,y) +x End Function
A. 20
B. 22
C. 28
D. 30
[单项选择]单击命令按钮时,下列程序的执行结果是
Private Sub Book( x As Integer)
x=x*2+1
If x<6 Then
Call Book(x)
End If
x=x * 2 + 1
Print x;
End Sub
Private Sub Command2_Click( )
Book 2
End Sub
A. 23 47
B. 10 36
C. 22 44
D. 24 50
[单项选择]单击命令按钮时,下列程序的执行结果是  Private Sub Book(x As Integer)    x=x * 2 + l    If x<6 Then      Call Book(x)    End If    X=X * 2 + 1    Print x;  End Sub  Private Sub Command2_Click( )    Book2  End Sub

A. 23 47
B. 10 36
C. 22 44
D. 24 50
[单项选择]单击命令按钮时,下列程序的执行结果是 Private Sub Command1_Click( ) Dima As Integer,b As Integer,c As Integer a=3:b=4:c=5 Print SecProc(c,b,a) End Sub Function FirProc(x As Integer,y As Integer,z As Integer) FirProc=2*x+y+3*z+2 End Function Function SecProc(x As Integer,y As Integer,z As Integer) SecProc=FirProc(z,x,y) +x+7 End Function A) 20 B) 25 C) 37 D) 32
[单项选择]单击命令按钮时,下列程序的执行结果是( )。   Private Sub Command1_Click( )     Dim a As Integer,b As Integer,C As Integer     a=3     b=4     c=5     Print SecProc(c,b,a)   End Sub   Function FirProc (x As Integer,y As Integer,z As Integer)     FirProc=2 * x + y + 3 * z+2   End Function   Function SecProc (x As Integer,y As hteger,z As Integer)     SecProc=FirProc(z,x,y)+x+7   End Function
A. 13
B. 16
C. 36
D. 33
[单项选择]单击命令按钮时,下列程序的执行结果是Private Sub Command1_Click( ) Dim a As Integer,b As Integer,c As Integer a=3 b=4 c=5 Print SecProc(c,b,a)End SubFunction FirProC(x As Integer,y As Integer,z As Integer) FirProc=2*s+y+3*zEnd FunctionFunction SecProc(x As Integer,y As Integer,z As Integer) SecProc=FirProc(z,x,y)+xEnd Function
A. 20
B. 22
C. 28
D. 30
[单项选择]单击命令按钮时,下列程序的执行结果是( )。   Private Sub Command1_Click( )    Dim a As Integer,b As Integer,c As Integer    a=3    b=4    c=5    Print SecProc(c,b,a)   End Sub   Function FirProC(x As Integer,y As Integer,z As Integer)   FirProc=2*s+y+3*z   End Function   Function SecProc(x As Integer,y As Integer,z As Integer)    SecProc=FirProc(z,x,y)+x   End Function
A. int a=5;int x[a];
B. const int a=5;int x[a];
C. int n=5;int *p=new int[a];
D. const int n=5;int *p=new int[a];
[单项选择]单击命令按钮时,下列程度段的执行结果是( )。
Private Sub Command1 Click( )
Dim a AS Integer, b As Integer, C AS Integer
a=2:b=4:c=6
Call S1(a,b)
Print "a="; a; "b="; b; "c="; C
Call S2(a,b)
Print "a ="; a; "b="; b; "c="; c;
End Sub
Private Sub S 1(x As Integer, Y As Integer)
Dim CAs Integer
x=2 * x:y=y+2:c=x+y
End Sub
Sub S2(x As Integer, ByVal Y As Integer)
Dim eAs Integer
x=2 * x:Y=Y+2:e=x+y
End Sub
A. a=4 b=6 c=6
B. a=8 b=6 c=6
C. a=4 b=6 c=6
D. a=8 b=6 c=6
[单项选择]单击命令按钮时,下列程序代码的执行结果为 Private Sub Command1_Click( ) Print MyFunc(24,18) End Sub Public Function MyFunc(m As Integer,n As Integer)As Integer Do While m ◇ n Do While m>n:m=m—n:Loop DO While m<n:n=n-m:Loop Loop My Func=m End Function
A. 2
B. 4
C. 6
D. 8
[单项选择]单击命令按钮时,下列程序的执行结果为   Private Sub Command1_Click( ) Dim x As Integer,y As Integer x=50:y=78 Call PPP(x,y) Print x;y End Sub Public Sub PPP(ByVM n As Integer,ByVal m As Integer) n=n/l0 m=m/l0 End Sub
A. 08
B. 50 78
C. 450
D. 78 50

我来回答:

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

订单号:

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