首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上有名称为Commandl的命令按钮。事件过程及2个雨数过程如下: Private Sub Commandl_Click() Dim X As Integer,Y As Integer,z x=3 Y=5 z=fy(Y) Print fx(fx(x))
窗体上有名称为Commandl的命令按钮。事件过程及2个雨数过程如下: Private Sub Commandl_Click() Dim X As Integer,Y As Integer,z x=3 Y=5 z=fy(Y) Print fx(fx(x))
admin
2010-04-08
20
问题
窗体上有名称为Commandl的命令按钮。事件过程及2个雨数过程如下:
Private Sub Commandl_Click()
Dim X As Integer,Y As Integer,z
x=3
Y=5
z=fy(Y)
Print fx(fx(x)),y
End Sub
Function fx(ByVal a As Integer)
a=a+a
fx=a
End Function
Function fy(ByRef a As Integer)
a=a+a
fy=a
End nlnction
运行程序,并单击命令按钮,则窗体上显示的2个值依次是【 】和【 】。
选项
答案
12,10
解析
函数fy中的参数a是按地址传递,函数fx中的参数a是按值传递,所以执行z=fy(y)后,y的值为10,z的值为10,x的值为3,而执行fx(fx(x))后,fx(fx(x))的为12。
转载请注明原文地址:https://jikaoti.com/ti/g6g0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
仅由顺序、选择(分支)和重复(循环)结构构成的程序是【】程序。
下列关于JDK目录结构的说法,错误的是( )。
定义一个表示10个值为null的字符串数组,下面选项正确的是()。
若有如下程序:publicclassTest{publicstaticvoidmain(String[]args){intx=20;if(x>10)System.out.print(x-=5);if(x>5)Syste
开发软件所需高成本和产品的低质量之间有着尖锐的矛盾,这种现象称作( )。
在数据管理技术的发展过程中,经历了人工管理阶段、文件系统阶段和数据库系统阶段。其中数据独立性最高的阶段是【】。
下面不属于java.awt.Event包中定义的事件适配器是( )。
一个项目具有一个项目主管,一个项目主管可管理多个项目。则实体集“项目主管”与实体集“项目”的联系属于______的联系。
在Applet中显示文字、图形等信息时,应使用的方法是()。
面向对象的设计方法与传统的面向过程的方法有本质不同,它的基本原理是( )。
随机试题
一般认为,政府发行的短期国库券利率的组成部分包括__________、__________。
腹腔积液的体征有
慢性支气管炎合并肺气肿时主要的临床表现是()。
A.疼痛常因吞咽、讲话而引起B.疼痛常由于咀嚼、大张口时诱发C.持续性剧痛,夜间加剧D.疼痛常伴有耳颞区皮肤发红、多汗、唾液分泌及颞浅动脉搏动增加E.骤然发生的闪电样剧烈疼痛,持续时间较短,夜间减弱或消失颞下颌关节紊乱病疼痛的特点是
城市道路交通标志分为()类标志。
某工程计划中,A工作的持续时间为5天,总时差为7天,自由时差为3天,如果A工作实际进度拖延10天,那么会影响工程计划工期()。
记账凭证是登记总账的依据,原始凭证是登记明细账的依据。()
下列各项中,属于审计委员会的职责有()。
村民委员会不及时公布应当公布的事项或者公布的事项不真实的,村民有权向()反映,有关政府机关应当负责调查核实,责令公布;经查证确有违法行为的,有关人员应当依法承担责任。
Thehumanvoiceoftensounds________inthetelephone.
最新回复
(
0
)