首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在窗体上画一个名称为Command1的命令按钮,并编写如下过程: Private Sub Command1_Click() Dim x AS Integer Static y As Integer x=10
在窗体上画一个名称为Command1的命令按钮,并编写如下过程: Private Sub Command1_Click() Dim x AS Integer Static y As Integer x=10
admin
2010-09-11
27
问题
在窗体上画一个名称为Command1的命令按钮,并编写如下过程: Private Sub Command1_Click() Dim x AS Integer Static y As Integer x=10 y=5 Call f1(x, y) Print x,y End Sub Private Sub f1(ByRef x1 As Integer, y1 As Integer) x1=x1+2 y1=y1+2 End Sub 程序运行后,单击命令按钮,在窗体上显示的内容是______。
选项
A、10 5
B、12 5
C、10 7
D、12 7
答案
D
解析
在形参中,默认的传送方式为传地址传送,所以形参x1和y1都按传地址传送。最后,实参x为12,实参y为7。
转载请注明原文地址:https://jikaoti.com/ti/atg0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在安全控制命令中,以下哪个命令是显示证书缓存区和密钥表项的命令
创建一个标记有“保存”按钮的语句是
在执行完此程序段后,i,j值为inti=1,j=10;do{if(++i>j--)continue;}while(i<5);
设有下列两个类的定义,则类Person和类Man的关系是( )。classPerson{longid;//身份证号Stringname;//姓名}
在长度为64的有序线性表中进行顺序查找,最坏情况下需要比较的次数为( )。
在面向对象方法中,______描述的是具有相似属性与操作的一组对象。
请完善程序(程序文件名:Java_1.java)并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。[题目要求]完善该程序并进行调试,使程序输出结果如下图所示。源程序://用2~20的偶数去
软件开发过程主要分为需求分析、设计、编码与测试4个阶段,其中______阶段产生“软件需求规格说明书”。
Java语言中,有一个类是所有类或接口的父类,这个类的名称是______。
随机试题
机体组主要包括:()、()、()、油底壳等。
Youcannotseethepatientatthemomentheisnow__________medicaltreatment.
结核病的原发综合征典型的X线胸片表现的是:
下列诱发恶性高热的概率最小的是()。
甲公司签发了一张银行承兑汇票,银行进行了承兑,乙公司和丙公司在汇票上记载了“保证”字样并签章,注明各承担50%的保证责任,但是未记载被保证人名称。下列说法正确的是:()
室内消火栓如何分类?
Theteacher(A)toldus(B)thattheearth(C)ranaround(D)thesun.
某城市社区有一些居民家里的宠物经常在小区内随地大小便,引起了其他居民的不满,甚至发生过口角。社会工作者小赵决定运用地区发展模式来解决这个问题。下列小赵的做法中,较为适当的是()。
白居易在登上庐山时写下:“人间四月芳菲尽,山寺桃花始盛开”。产生诗中景象的原因是()。
Maryhaskeptworkingfortenhours.______,sheneedsarestnow.
最新回复
(
0
)