首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下用户自定义函数 Function Func(a As Integer, b As Integer) As Integer Static m As Integer, i As Integer m=0:i=2
以下用户自定义函数 Function Func(a As Integer, b As Integer) As Integer Static m As Integer, i As Integer m=0:i=2
admin
2010-03-30
37
问题
以下用户自定义函数 Function Func(a As Integer, b As Integer) As Integer Static m As Integer, i As Integer m=0:i=2 i=i+m+i m=i+a+b Func=m End Function 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim k As Integer,m As Integer,p As Integer k=4:m=1 P=Func(k,m) Print p End Sub 程序运行后,单击命令按钮,输出结果为
选项
A、8
B、9
C、10
D、11
答案
1
解析
变量i的计算过程为i=2+0+1 =3,变量m的计算过程为m=3+4+1=8,m的值通过于函数名Fune返回。
转载请注明原文地址:https://jikaoti.com/ti/ejq0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
如果一个工人可管理多个设备,而一个设备只被一个工人管理,则实体“工人”与实体“设备”之间存在【】关系。
下面关于对象加锁的叙述错误的是()。
下列关于线程优先级的说法中,正确的是()。
在Java中,用package语句说明一个包时,该包的层次结构必须是()。
算法的空间复杂度是指()。
算法复杂度主要包括时间复杂度和【】复杂度。
下列命令中,属于Java编译命令的是()。
在关系运算中,______运算是对两个具有公共属性的关系所进行的运算。
在窗体上画一个名称为Text1的文本框,然后画三个单选按钮,并用这三个单选按钮建立一个控件数组,名称为Option1,程序运行后,如果单击某个单选按钮,则文本框中的字体将根据所选择的单选按钮切换,如图所示,请填空。PrivateSubOption1
随机试题
下列哪项作为献血者的常规筛查最有意义
产褥期是指
某居民企业2008年转让技术所有权收入是2500万元,相关的成本、费用、税金、损失是1775万元,已知该企业无其他纳税调整事项。该企业应缴纳的企业所得税是()万元。
当月增加的无形资产当月不摊销,当月减少的无形资产当月继续摊销。()
2017年7月31日,甲公司应付乙公司的款项220万元到期,因经营陷于困境,预计短期内无法偿还。当日,甲公司就该债务与乙公司达成的下列偿债协议中,属于债务重组的有()。
素质教育倡导人人有受教育的权利,强调在教育中每个人都得到发展,而不是只注重一部分人或是只注重少数人的发展。()
(1)我国皮革制品质量上乘,价格低廉(2)提出消除贸易壁垒措施(3)销往欧洲某国(4)遭遇该国高关税(5)皮革制品在该国滞销
Whodoesthewomanwanttospeakto?
NowadaysmoreAmericansareorderingininsteadofeatingout.Insomerestaurants,cooksmakefoodforotheronlinerestaurants
Forthepasttwoyears,______.(我一下忙着准备考试).
最新回复
(
0
)