首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
现有如下Sub过程: Sub fun(x es single,y as single) t = x x = t/y y = t mod y End sub在窗体上添加命令按钮(cmD) ,编写如下事件过
现有如下Sub过程: Sub fun(x es single,y as single) t = x x = t/y y = t mod y End sub在窗体上添加命令按钮(cmD) ,编写如下事件过
admin
2009-01-19
30
问题
现有如下Sub过程: Sub fun(x es single,y as single) t = x x = t/y y = t mod y End sub在窗体上添加命令按钮(cmD) ,编写如下事件过程: Private sub cmd_click( ) Dim a as single Dim b as single a = 5 b = 4 fun a, b Msgbox a & chr(10) + chr(13) & b End sub运行程序后,单击按钮,则在消息框中显示的内容为( )
选项
A、1和1
B、1.25和1
C、1.25和4
D、5和4
答案
2
解析
调用过程fun后,a和b传给参数x、y,运算后a、b分别是1.25、1。
转载请注明原文地址:https://jikaoti.com/ti/6Ic0FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
下列程序的输出结果为()。#include<iostream.h>voidmain(){char*a[]={}"hello","the","world"};char**pa=a:
使用VC6打开考生文件夹下的源程序文件modil.cpp,该程序运行时有错误,请改正错误,使得程序通过运行。程序输出:5a1注意:不要改动main函数,不能增行或删行,也不能更改程序的结构,错误的语句在∥*
请打开考生文件夹下的解决方案文件proj2,此工程中包含一个程序文件main.cpp,其中有“班级”类Class和“学生”类Student的定义,还有主函数main的定义。在主函数中定义了两个“学生”对象,他们属于同一班级。程序展示,当该班级换教室后,这两
支持子程序调用的数据结构是( )。
请使用VC6或使用【答题】菜单打开考生文件夹proj3下的工程proj3,其中包含了类IntegerSet和主函数main的定义。一个IntegerSet对象就是一个整数的集合,其中包含0个或多个无重复的整数;为了便于进行集合操作,这些整数按升序存放在成员
下列关于数据库设计的叙述中,正确的是( )。
当一个类对象行将消亡时,系统自动调用
数据库设计中反映用户对数据要求的模式是( )。
下面关于常成员函数的说法中正确的是()。
随机试题
审美形态的特征:________、贯通性、________、________。
阅读下面这篇短文,完成下列问题。希望哲学论要(节选)
Heberden结节
[2008年,第114题]某项目初期投资150万元,年运营成本90万元,寿命期5年,寿命期末收回残值20万元,企业基准折现率10%,则该项目的费用现值为()万元。
影响管道防腐层的附着质量和防腐效果的因素有()。
按照《全国建筑市场各方主体不良行为记录认定标准》,下列选项中属于施工单位承揽业务不良行为的是()。
下列各项中,应当划分为金融负债的有()。
简述南朝乐府民歌的艺术特色。
在一个容量为10的循环队列中,若头指针为6,尾指针为1,则此时该循环队列中共有的元素个数为()。
JeanneLavaleisan18-year-oldstudentattheArtDecoCollegeofArtandDesigninAntwerp,Belgium.Oneoftheworld’smajors
最新回复
(
0
)