首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下程序: Private Sub Command1_Click() Dim m As Integer, n As Integer m = 2 : n = 1 Select Case m Case 1
编写如下程序: Private Sub Command1_Click() Dim m As Integer, n As Integer m = 2 : n = 1 Select Case m Case 1
admin
2015-06-30
28
问题
编写如下程序:
Private Sub Command1_Click()
Dim m As Integer, n As Integer
m = 2 : n = 1
Select Case m
Case 1
Select Case n
Case 1
Print "AAA"
Case 2
Print "BBB"
End Select
Case 2
Print "CCC"
End Select
End Sub
程序运行后,单击命令按钮Command1,输出结果为
选项
A、AAA
B、BBB
C、CCC
D、1
答案
C
解析
Select Case语句后面跟的是条件。根据条件执行相应的分支语句。m=2,因此执行Select Case m中的Case 2分支语句。选C)。
转载请注明原文地址:https://kaotiyun.com/show/ZkQp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
假定有下列两个过程:PrivateSubPPP(aAsSingle,bAsSingle)a=a+bPrinta,bb=a+bPrinta,bEndSu
下列不属于软件工程3个要素的是()。
过程共有3种,它们分别是()。
若要将复选框设置成图形模式,则应设置()属性值为“1-vbButtonGraphical”。
如果A为整数且|A|>=10,则打印“OK”,否则打印“Error”,表示这个条件的单行格式If语句是()。
下列叙述中错误的是()。
下列关于MDI子窗体在运行时特性的叙述错误的是()。
下列关于图像框控件和图片框控件的说法错误的是()。
如果在立即窗口中执行以下操作(<CR>是回车键);a=8<CR>b=9<CR>printa>b<CR>则输出结果是______。
软件设计模块化的目的是【】。
随机试题
我国的社会主义发展战略只注重了经济的发展,而忽视了社会的综合发展。
关于植皮术的叙述,错误的是
台儿庄战役是中国军民在()战争中第一次空前的胜利,史称“台儿庄大捷”。
下列寻址方式中,()方式需要先计算,再访问主存。
(单选题)我们要把改革创新精神贯彻到治国理政的各个环节,毫不动摇地坚持改革方向,()。
有一种理论认为,证券市场在走向成熟时会使市场参与者的赢利趋向平均化,但是我们知道几乎国内外所有证券市场的价格都存在一定程度的扭曲。如果用更通俗的语言来表述,就是市场永远不会走到真正成熟的那一天,股票价格的定位根本不能用所谓理性的计算来获得。所以,我们将无法
传说中开天辟地、炼石补天、衔石填海的神话人物依次是:
锐进软件股份有限公司是一个由四个子公司,即甲、乙、丙、丁组成的总公司。在总公司的利润方案下,每个子公司承担的利润份额与每年该子公司员工占锐进软件股份有限公司总员工数的份额相等。但是去年该公司的财务报告却显示,甲公司在员工数量增加的同时向总公司上缴利润的比例
关于ARM处理器异常中断响应过程中,以下说法正确的是()。
有两个关系R,S如下:由关系R通过运算得到关系S,则所使用的运算为( )。
最新回复
(
0
)