首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
假定有如下的Sub过程: Sub Func(x As Single, y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程:
假定有如下的Sub过程: Sub Func(x As Single, y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程:
admin
2010-09-11
21
问题
假定有如下的Sub过程: Sub Func(x As Single, y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim a As Single Dim b As Single a=6 b=5 Func(a, B) Print a, b End Sub 程序运行后,单击命令按钮,输出结果为 ______。
选项
A、6 5
B、1 1
C、1.2 5
D、1.2 1
答案
8
解析
Visual Basic的函数参数默认的方式是传地址的,所以函数s对参数做的改变会反映到原来的变量里。
转载请注明原文地址:https://kaotiyun.com/show/Pymp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在下列程序的下划线处,填入适当语句使程序能正确执行并输出异常栈信息。publicclassThrowableException{publicstaticvoidmain(Stringargs[i]{try{throwne
数据流图用于抽象描述一个软件的逻辑模型,数据流图由一些特定的图符所构成。下列图符名标识的图符不属于数据流图合法图符的是______。
软件开发过程主要分为需求分析、设计、编码与测试4个阶段,其中______阶段产生“软件需求规格说明书”。
在下面Javaapplet程序的横线处填入代码,使程序完整并能够正确运行。importjava.awt.*:importjava.applet.*;publicclassGreetingextendsApplet{
下列关于Java语言特点的叙述中,错误的是
阅读下面代码publicclassTest{ publicstaticvoidmain(Stringavgs[]){ System.out.println(89>>1); }}其运行结果是
请完善程序(程序文件名:Java_3.java)并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。[题目要求]在点击“Exit”按钮和窗口右上角的关闭按钮时,可以关闭窗口。程序运行后的界面如下
表达式-31>>>5>5>>>5>>5>>>5>>5值为()。
下面不属于软件工程的3个要素的是()。
软件工程研究的内容主要包括______技术和软件工程管理。
随机试题
下列哪项检查对诊断肾病综合征最重要
交通行业标准《公路桥梁板式橡胶支座》规定:对于混凝土桥梁,板式橡胶支座实测转角正切值应满足()。
火灾风险是火灾概率与火灾后果的综合度量。下列属于影响火灾后果的因素的是()。
上市公司的可流通股票作为质押品时,其公允价值是该股票的市场价格。()[2015年5月真题]
在贷款审查的管理流程中,不属于贷款审查要遵循的原则是(
现在人们日益关注“绿色增长”的概念。“绿色增长”的概念与“低碳经济”、“循环经济”和“生态经济”等概念相比,它们的核心是一致的,倡导的都是一种经济社会与自然资源、生态环境全面协调和可持续发展的理念。差别只是视角和重点不同。低碳经济强调降低温室气体排放,循环
Modernpeoplewearmanymasksthatkeeptheirrealityconfinedand【C1】______,eventothemselves.Thepossibilityofencounterin
集权制的弊端是容易出现首长个人独揽大权、独断专行、滥用权力的现象。()
你是交通管理局的民警,监控设备没安装好,有群众举报有人在附近飙车,给周围群众居民带来安全隐患。其中有领导的儿子,如果分管领导让你去处理,你怎么办?
设0≤an<(一1)nan2中,哪个级数一定收敛?
最新回复
(
0
)