首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
编写如下程序: Prirate Sub Command1_Click() Dim x As Integer,y As Integer x=10 y=20 Call fun1(x,y) Print x;y End Sub Private Function f
编写如下程序: Prirate Sub Command1_Click() Dim x As Integer,y As Integer x=10 y=20 Call fun1(x,y) Print x;y End Sub Private Function f
admin
2016-06-23
40
问题
编写如下程序:
Prirate Sub Command1_Click()
Dim x As Integer,y As Integer
x=10
y=20
Call fun1(x,y)
Print x;y
End Sub
Private Function fun1(ByVal m As Integer,n As Integer)As Integer
m=m*m
n=n+n
End Function
程序运行后,单击命令按钮Command1,输出结果为
选项
A、10 25
B、10 40
C、100 25
D、100 40
答案
B
解析
函数fun1(ByVal m As Integer,n As Integer)中m通过ByVal指定为值传递,n为引用传递。传递给该函数的实参会被改变。选B。
转载请注明原文地址:https://jikaoti.com/ti/eNkiFFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
关于缓刑,下列哪一选项是错误的?()
在人类探测月球的过程中,可以用不同方式将月球探测器送入月球轨道,我国“嫦娥一号”采用的经济稳妥的方式是()。
成语“草木皆兵”反映的历史事件是()。
建设中国特色现代农业.必须建立完善的农业社会化服务体系。要坚持主体多元化、服务专业化、运行市场化的方向,充分发挥公共服务机构的作用。下列不属于我国构建农业社会化服务新机制,大力培育发展多元服务主体的措施的是()。
一首歌中唱道:“我们唱着东方红,当家作主站起来……”这反映的历史事件是()。
“八荣八耻”中提出“以崇尚科学为荣,以愚昧无知为耻”,下列哪一历史事件中也曾提出过类似思想主张?()
能够根据样本结果推断总体数量特征的调查方式是()。
蔬菜是人类不可缺少的食物,它富含人体需要的维生素、矿物质及消化系统所必需的粗纤维等。下列说法中错误的是()。
华氏度和摄氏度均是测量温度的单位,摄氏度规定水的冰点温度为0度,沸水温度为100度:华氏度规定水的冰点为32度,沸点为212度。某时刻华氏度比摄氏度数值上高60度,则该时刻为:
在税务行政诉讼的受理中,人民法院在接到原告的起诉状后,应按条件加以审查,并在()内作出立案或不予受理的裁定。
随机试题
Myplane________at9o’clocktomorrowmorning.Willyoucometoseemeoff?
腹痛肠鸣,呕吐泄泻可见于( )
患者最可能诊断为患者最不易鉴别的头痛为
防止血液引起枸橼酸钠中毒反应的措施是()。
融资租赁是企业常用的一种筹集资金的方式,其特点是()。
《行政单位国有资产管理暂行办法》不适用于()。
1945年9月22日,盟国赔偿委员会代表、美国特使鲍莱强调,赔偿之后日本拥有的生产水平应维持在1926—1930年的水平,这意味着日本经济能力将不能高于被日本侵略过的亚洲国家。这反映了美国()。
下列不属于紧急避险的是()。
Thelawisgreatmassofrules,showingwhenandhowfaramanis【B1】tobepunished,ortobemadeto【B2】overmoneyorproperty
JusticeisoneofthemostpopularcoursesinHarvard’shistory.Nearlyonethousandstudents【B1】______Harvard’shistoricSande
最新回复
(
0
)