首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在窗体上画一个命令按钮,其名称为Commandl,然后编写如下程序: Function a(x As Integer, y As Integer) As Integer a = IIf(x > y, x, y) End Function Private S
在窗体上画一个命令按钮,其名称为Commandl,然后编写如下程序: Function a(x As Integer, y As Integer) As Integer a = IIf(x > y, x, y) End Function Private S
admin
2009-07-23
18
问题
在窗体上画一个命令按钮,其名称为Commandl,然后编写如下程序:
Function a(x As Integer, y As Integer) As Integer
a = IIf(x > y, x, y)
End Function
Private Sub Command1_Click()
Dim n As Integer, m As Integer
n = 10
m = 20
Print a(n, m)
End Sub
程序运行后,单击命令按钮,输出结果是______。
选项
答案
20
解析
转载请注明原文地址:https://jikaoti.com/ti/uAq0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
将E-R图转换到关系模式时,实体与联系都可以表示成()
下列关于小应用程序说法错误的是()
JavaApplet不能直接运行,必须编写【】文件,将Applet嵌入其中。
任何从【】派生的类都可以用throw语句抛出,抛出异常用来表明程序遇到的错误无法正常执行而需要异常处理。
在长度为n的有序线性表中进行二分查找,需要的比较次数为【】。
下列语句序列执行后,k的值是______。intx=10,y=30;do{y-=x;X++;}while(x++<y--);
在关系运算中, 【】 运算是对两个具有公共属性的关系所进行的运算。
在深度为5的满二叉树中,叶子结点的个数为()。
Java类库中,将信息写入内存的类是()。
假设线性表的长度为n,则在最坏情况下,冒泡排序需要的比较次数为()。
随机试题
我国公务员级别确定与晋升的依据有()
下列组织中呈现嗜银性的是
患者胃痛暴作,恶寒喜暖,脘腹得温则痛减,口不渴,喜热饮,舌苔薄白,脉弦紧。治疗应首选()
长期应用氯丙嗪,最常见的副作用是
继发效应指用冷或用热超过一定时间,产生与生理反应相反的作用。()
如图所示,均质鼓轮A和圆盘B质量均为m,半径均为R,物体C质量也为m。若物体C上升时的速度为v,则系统对A点的动量矩为()。
财务顾问申请人应当提交最近()个月未因执业行为违法违规受到处罚的说明。
判决宣告前,一人犯数罪,分别被判处有期徒刑,对于数个有期徒刑的并罚,应采用()(2017年一专一第11题)
王某与李某素有仇怨。一日,李某拦住王某,百般辱骂,王某挥舞拳头作势欲打李某,李某逃跑,王某紧追不舍。李某从屠户徐某处抢得一把杀猪刀,王某不敢再追。李某用言语刺激王某,王某又追。待王某追近时,李某用杀猪刀捅了王某一刀,导致王某心脏破裂而死。李某的行为属于(
打开考生文件夹下的演示文稿yswg.pptx,按照下列要求完成对此文稿的修饰并保存。(1)使用演示文稿设计中的“活力”模板来修饰全文。全文幻灯片的切换效果设置成“百叶窗”。(2)将第三张幻灯片版式改变为“标题和内容”,标题处键入“顶峰”,将对象部分动
最新回复
(
0
)