题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-30 03:05:51

[单项选择]在窗体上画一个命令按钮,然后编写如下程序 Private Sub Command1_Click( ) Dim a As Integer,b As hiteger a=1 b=2 Print N(a,b) End Sub Function N(x As Integer,y As Integer)As Integer N=IIf(x>y,x,y) End Function 程序运行后,单击命令按钮,输出结果为
A. 1
B. 2
C. 5
D. 8

更多"在窗体上画一个命令按钮,然后编写如下程序 Private Sub"的相关试题:

[单项选择]在窗体上画一个命令按钮,然后编写如下程序  Private Sub Command4 Click( )    Dim a As Integer,b As Integer    a=1    b=2    Print N(a,b)  End Sub  Function N(x As Integer,y As Integer)As Integer    N=IIf(x>y,x,y)  End Function  程序运行后,单击命令按钮,输出结果为

A. l
B. 2
C. 5
D. 8
[填空题]在窗体上画一个命令按钮,然后编写如下代码: Private Sub Commandl_Click( ) Dim M(10) As Integer For k=1 To 10 M(k)=12-k Next k x=6 Msgbox M(2+M(x)) End Sub 程序运行后,单击命令按钮,消息框显示的是
[填空题]在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Commandl Click( )
Do Until b<0
a=InputBox("输入a的值")
a=Val(a)
b=InputBox("输入b的值")
b=Val(b)
a=a +b
Loop
Print a
End Sub
程序运行后,依次输入5,4,3,2,1,0,-1,-2,则输出结果是 【14】
[单项选择]在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Cliek( ) Dim a( ) a = array(1,3,5,7) s=0 For i = 1 To 3 s=s*10+a(i) Next i Print s End Sub 程序运行后,输出结果为( )。
A. 135
B. 357
C. 531
D. 753
[单项选择]在窗体上画一个命令按钮,然后编写如下程序:
Option Base 1
Private Sub Command1_Click( )
  Dim Arr1(12)As Integer, Arr2(3)As Integer
  Dim Sum As Integer
  Sum = 2
  For i = 1 To 12
    Arr1(i)= i
  Next i
  For i = 1 To 3
    Arr2(i)= Arr1(i * i)
  Next i
  For i = 1 To 3
    Sum = Sum + Arr2(i)
  Next i
  Print Sum
End Sub
程序运行后,单击命令按钮,在窗体上的输出结果是________。
A. 16
B. 24
C. 32
D. 36
[单项选择]在窗体上画一个命令按钮,然后编写下列程序
Private Sub Command3_Click( )
Tcl 2
Tcl 3
Tcl 4
End Sub
Sub Tcl(a As Integer)
Static x As Integer
x=x+a
Print x;
End Sub
程序运行后,单击命令按钮,输出结果为
A. 2 3 4
B. 2 5 9
C. 3 5 4
D. 2 4 3
[单项选择]在窗体上画一个命令按钮,然后编写如下程序:   Private Sub Comrnand3_Click( )    Cop 2    Cop 3    Cop 4   End Sub   Sub Cop (a As Integer)    Static x As Integer    x=x + a    Print x;   End Sub   程序运行后,单击命令按钮,输出结果为
A. 2 3 4
B. 2 5 9
C. 3 5 4
D. 2 4 3
[单项选择]在窗体上画一个命令按钮,然后编写如下程序:
  Private Sub Commandl_Click( )
    Dim a AS Integer,b As Integer
    a=15
    b=2
    t N(a,b)
  End Sub
  Function N(x As Integer,y As Integer) As Integer
    N=IIf(x)y,x,y)
  End Function
  程序运行后,单击命令按钮,输出结果为
A. 1
B. 2
C. 15
D. 8
[填空题]在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Command1 Click( )
Do Until b<O
a=InputBox("输入a的值")
a=Val(A)
b=InputBox("输入b的值")
b=Val(B)
a=a+b
Loop
Print a
End Sub
程序运行后,依次输入5,4,3,2,1,0,-1,-2,则输出结果是 【12】
[填空题]在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Commandl_Click( )
DO Until b<0
a=InputBox(”输入a的值”)
a=Val(a)
b=InputBox(”输入b的值”)
b=Val(b)
a=a+b
Loop
Print a
End Sub
程序运行后,依次输入5,4,3,2,1,0,-1,-2,则输出结果是【15】

我来回答:

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

订单号:

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