首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在窗体上画一个命令按钮,然后编写如下程序: Dim x As Integer Sub inc(a As Integer) x=x+a End Sub Private Sub Command1_CliCk() inc2 inc3 inc4 Msgbox x;
在窗体上画一个命令按钮,然后编写如下程序: Dim x As Integer Sub inc(a As Integer) x=x+a End Sub Private Sub Command1_CliCk() inc2 inc3 inc4 Msgbox x;
admin
2010-01-05
31
问题
在窗体上画一个命令按钮,然后编写如下程序:
Dim x As Integer
Sub inc(a As Integer)
x=x+a
End Sub
Private Sub Command1_CliCk()
inc2
inc3
inc4
Msgbox x;
End Sub
程序执行后,单击Command1命令按钮,消息框显示结果是【 】
选项
答案
9
解析
inc函数每执行一次就向x上累加一次传入的参数,所以最后x的值为 2+3+4=9。
转载请注明原文地址:https://jikaoti.com/ti/SfP0FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
有以下程序,在横线应添加()。#include<iostream>usingnamespacestd;classTestClass{public:TestClass(intn){number=n;}//拷贝构造函数~Test
开发大型软件时,产生困难的根本原因是()。
下列叙述中正确的是()。
有如下定义:inta[5]={1,3,5,7,9},*p=a;下列表达式中不能得到数值5的是()。
要利用C++流实现输入输出的各种格式控制,必须在程序中包含的头文件是()。
下面叙述中错误的是()。
已知函数func的原型为intfunc(int,int);则下列选项中,不能作为它的重载函数原型的是()。
使用VC6打开考生文件夹下的源程序文件modi3.cpp。其中定义的类并不完整,按要求完成下列操作,将类的定义补充完整。完成以下功能:(1)定义类的私有变量a、b,请在注释//********1********后添加适当的语句。(2)完
软件生命周期中的活动不包括( )。
如下程序段的输出结果是【】。 i=1 DOWHILEi<10 i=i+2 ENDDO ?i查询与项目“sl(项目号)所使用的任意一个零件相同的项目号、项目名称、零件号和零件名称,使用的SQL语句是SELECT项目
随机试题
患者,女性,45岁。有胆囊结石病史,反复腹痛、发热、黄疸1年,近3天上述症状加重,高热、黄疸不退。入院体温40℃,脉搏120次/分,血压70/50mmHg。该患者首选的治疗为
甲状腺功能亢进症患者具有特征性的神经系统症状是()。
鼻黏膜给药和直肠给药常会产生肝脏首过作用。()
月经产生是
A.清骨散B.知柏地黄丸C.清营汤D.黄连解毒汤E.五味消毒饮有清骨蒸潮热作用的方剂是
()和使用计划就是根据经济与社会发展的需要和土地资源的情况,在时空上对一定区域内土地资源的合理分配和协调利用的提前安排,是我国土地开发利用的指导性文件。
某大型百货商场因扩大经营规模,需要对外招聘营业员。根据历史数据分析得知,营业员数量与商场营业规模成线性相关关系,回归系数a、b分别为25.12、10.25。去年商场实现营业额10亿元,有营业员120名。今年商场计划实现营业额12亿。请根据上述资料,回答下列
下列属于会计报表的是()。
瓷器区别于陶器,是因为瓷器的主要原料是()。
Everynightshelistenedtoherfathergoingaroundthehouse,lockingthedoorsandwindows.Shelistened;thebackdoorclosed
最新回复
(
0
)