首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在窗体中添加一个命令按钮(名称为Command1) ,然后编写如下代码: Private Sub Command1_Click( ) A=95 If A>60 Then I=1 If A>70 Then I=2
在窗体中添加一个命令按钮(名称为Command1) ,然后编写如下代码: Private Sub Command1_Click( ) A=95 If A>60 Then I=1 If A>70 Then I=2
admin
2010-07-10
16
问题
在窗体中添加一个命令按钮(名称为Command1) ,然后编写如下代码: Private Sub Command1_Click( ) A=95 If A>60 Then I=1 If A>70 Then I=2 If A>80 Then I=3 If A>90 Then I=4 MsgBox I End Sub 窗体打开运行后,单击命令按钮,则消息框的输出结果是______。
选项
A、1
B、2
C、3
D、4
答案
D
解析
if语句为if条件表达式1 Then语句1,当条件表达式1为真时要执行语句1。在程序中,A=95,A>90为真,因此执行语句“I=4”,输出结果为4。
转载请注明原文地址:https://kaotiyun.com/show/rbup777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
将十进制数转换为二进制数的递归函数定义如下:voidd2b(unsignedintn){if((n==0)||(n==1))cout
有如下头文件:intf1();staticintf2();classMA{public:intf3();staticintf4();};在所描述的函数中,具有隐含的this指针的是()。
下列选项中不属于结构化程序设计原则的是( )。
若要对类Value中重载的类型转换运算符long进行声明,下列选项中正确的是
有如下函数模板:template<typenameT,typenameU>Tcast(Uu){returnu;}其功能是将U类型数据转换为T类型数据。已知i为int型变量,下列对模板函数cast的调用中正确的是()。
在关系数据库中,用来表示实体间联系的是
下列运算符只能重载为成员函数的一组是
下列关于基类和派生类关系的叙述中,正确的是
使用VC6打开考生文件夹proj3下的工程proj3,其中定义了一个字符串变量类StringVar。类成员的说明在程序注释中。请在//********333********//********666********之间填写StringVar成员函数和友元函
使用VC6打开考生文件夹proj2下的工程proj2。其中在编辑窗口内显示的主程序文件中定义有类XBase和XDerived,以及主函数main。程序文本中位于每行"//**********found**********下面的一行内有一处或多处下划线标记,
随机试题
财政关系
最可能的诊断是根据上述诊断,最恰当的检查是
根据证券法律制度的规定,下列选项中,证券交易所可以决定暂停上市公司股票上市的情形有()。
成明公司是一个高新技术公司,具有领先同业的优势。2010年每股收入10元,每股经营营运资本3元;每股净利润4元;每股净经营长期资产总投资2元;每股折旧摊销1元。该公司的β值为1.8,国库券的利率为3%,市场组合的平均收益率为8%,该企业预计投资资本中始终维
小马因遭遇家庭暴力,申请人身安全保护令,人民法院依法作出人身安全保护令,根据《反家庭暴力法》,该人身安全保护令的有效期一般不超过()个月。
A、11B、25C、29D、14B从每行来看,第一项+第二项=第三项×5。8+7=3×5,33+27=12×5,20+(25)=9×5。
Mr.andMrs.Jonesbothlikedwatchingmoviesverymuch.Neitherthewomannorherhusbandislazy,fortheyalwaysrunhomeaf
Readthearticlebelowaboutcareersinchildren’sbookpublishingandthequestionsontheoppositepage.Foreachquestion
Hostelbuildingsvaryfromcottagetocastle.Mosthavebeenadaptedtohostelusethoughsomehavebeenspeciallybuiltforthe
A、Makeasmanyfriendsaspossible.B、Makefriendswithmultipletypesofpeople.C、Neverbreakupwithyourbestfriends.D、Mak
最新回复
(
0
)