题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-11-16 01:38:10

[单项选择]在窗体上有一个命令按钮,然后编写如下事件过程。 Private Sub Command1_Click( ) Dim a(5)As String FOR i=1 To 5 a(i)=Chr(Asc("A")+(i-1)) Next For Each b h a Print b; Next End Sub 程序运行后,单击命令按钮,输出结果是
A. ABCDE
B. 1 2 3 4 5
C. abcde
D. 出错信息

更多"在窗体上有一个命令按钮,然后编写如下事件过程。 Private Su"的相关试题:

[单项选择]在窗体上有一个命令按钮,然后编写如下事件过程  Private Sub Command1 _ cickc ( )    a=InputBox("enter the first integer")    b=InputBox("enter the second integer")    Print b + a  End Sub  程序运行后,单击命令按钮,先后在两个输入框中分别输入“2”和“6”,则输出结果为
A. 2
B. 62
C. 8
D. 26
[单项选择]在窗体上有一个命令按钮,然后编写如下事件过程   Private Sub Command1 _ cickc ( )     a=InputBox("enter the first integer")     b=InputBox("enter the second integer")     Print b + a   End Sub   程序运行后,单击命令按钮,先后在两个输入框中分别输入“2”和“6”,则输出结果为( )。
A. ifstream fin;fin.open("C:////test.txt");
B. ifstream fin("C:////test.txt");
C. A)和B)
D. ifstream fin;fin("C:////test.txt");
[单项选择]在窗体上有一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click( ) Dim a(5)As String   FOR i=1 To 5      a(i)=Chr(Asc("A")+(i-1))   Next   For Each b In a     Print b;   Next End Sub 程序运行后,单击命令按钮,输出结果是
A. ABCDE
B. 1 2 3 4 5
C. abcde
D. 出错信息
[单项选择]在窗体上有一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click( ) Dim a(5) As String FOR i=1 To 5 a(i) =Chr(Asc("A") +(i-1)) Next For Each b In a Print b; Next End Sub 程序运行后,单击命令按钮,输出结果是
A. ABCDE
B. 1 2 3 4 5
C. abcde
D. 出错信息
[单项选择]窗体上有一个命令按钮,命令按钮的单击事件过程如下: Private Sub Command1_Click( ) Dim a   a=Array(1,2,3,4,5)   For k=1 To 4     s=s+a(k)   Next   Print S End Sub 运行程序后,单击命令按钮,输出结果是
A. 10
B. 14
C. 15
D. 120
[单项选择]在窗体上画一个命令按钮,然后编写如下程序   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

我来回答:

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

订单号:

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