首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
假定有如下的Sub过程: Sub sfun(x As Single,y As SinglE)t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:
假定有如下的Sub过程: Sub sfun(x As Single,y As SinglE)t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:
admin
2010-06-10
16
问题
假定有如下的Sub过程: Sub sfun(x As Single,y As SinglE)t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程: Private Sub Command1_Click( ) Dim a as single Dim b as single a=5 b=4 sfun a,b MsgBox a &char(10
选项
A、1和1
B、 1.25和1
C、 1.25和4
D、 5和4
答案
B
解析
此题中设定了一个sfun( )函数,进行除法运算和求模运算,为命令按钮(名为Command1)编写书件,定义两变量a=5,b=4:调用此函数传递a,b的值给x,y进行运算,t=x=5,y=4;x=t/y=5/4=1.25(除法运算):y=t Mod y=5 mod 4=1(求模运算)。
转载请注明原文地址:https://kaotiyun.com/show/Szup777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
有如下程序段:inti=1;intj=4;intmain(){intj=i,i=8;cout
下列哪一条不属于数据库设计的任务?()
已知枚举类型声明语句为:enumCOLOR{WHITE,YELLOW,GREEN=8,RED,BLACK=15};则枚举常量RED的值为
若实体A和B是一对多的联系,实体B和C是一对一的联系,则实体A和C的联系是
if语句的语法格式可描述为:格式1:if()或格式2:if()else关于上面的语法格式,下列表述中错误的是()。
请打开考生文件夹下的解决方案文件proj3,其中包含主程序文件main.cpp和用户定义的头文件Array.h,整个程序包含有类Array的定义和主函数main的定义。请把主程序文件中的Array类的成员函数Contrary()的定义补充完整,经补充后运行
使用VC++6.0打开考生文件夹下的源程序文件2.cpp。阅读下列函数说明和代码。函数sort(int&m,int&n,int&1)实现将3个整数m,n,1由大到小输出。m最大,1最小。程序实现时,可以把最大的数放到m上,先将m与n进行比较,如果
数据库系统在其内部具有3级模式,用来描述数据库中全体数据的全局逻辑结构和特性的是()。
在下列表述中,用来正确表示"相对于当前位置"文件定位方式的是
在关系运算中,选择运算的含义是()。
随机试题
相对剩余价值的获得是()
男性,48岁,公司经理,体重指数28,体检发现血糖高,左脚趾关节间断性红肿,饮酒和游泳后加重。空腹血糖的正常值是多少()。
某5岁男孩,咳嗽4个月,凌晨及活动后加剧,服用多种抗生素无效,服用博利康尼(特布他林)后有缓解。查体:无发热,面及颈部散在湿疹。两肺呼吸音粗,该病儿最可能的诊断是()
诊断成年女性贫血的标准为血红蛋白浓度低于()。
工程咨询成果质量评价分为三个层次,一般不包括()。
对信度的评估方法()。
Whatdoesthemanmean?
ReadthetextbelowabouttheWeblifestyle.Inmostofthelines(34-45),thereisoneextraword.Itiseithergrammaticallyin
HowtoCopewithYourSoul-destroyingJobs?A)Weallhaveheard—oratleastseeninthemovies—greatstoriesaboutpeoplewhoar
TheRedistributionofHopeA)"HOPE"isoneofthemostoverusedwordsinpubliclife,uptherewith"change".Yetitmatterseno
最新回复
(
0
)