首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
单击命令按钮时,下列程序的执行结果为 Private Sub Command1_Click() Dim a As Integer,b As Integer,c As Integer a=2:b=3:C=4 Print P2(c,b,A)End
单击命令按钮时,下列程序的执行结果为 Private Sub Command1_Click() Dim a As Integer,b As Integer,c As Integer a=2:b=3:C=4 Print P2(c,b,A)End
admin
2009-01-15
31
问题
单击命令按钮时,下列程序的执行结果为 Private Sub Command1_Click() Dim a As Integer,b As Integer,c As Integer a=2:b=3:C=4 Print P2(c,b,A)End Sub Private Function P1(x As Integer,y As Integer,z As Integer) P1=2 * X + y + 3 * z End Function Private Function P2(x As Integer,y As Integer,z As Integer) P2=P1(z,x,y) + X End Function
选项
A、21
B、19
C、17
D、34
答案
1
解析
对于多个过程或函数依次调用和处理与简单过程调用处理一样,本题先调用函数P2,而函数P2又调用函数P1,结果返回的顺序是从P1到P2,P2计算后输出到调用的地方。
转载请注明原文地址:https://kaotiyun.com/show/xM2p777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
Swing的事件处理机制包括______、事件和事件处理者。
数据库保护分为:安全性控制、______、并发性控制和数据的恢复。
在Java语言中,类成员的限定词有以下几种:private,public,______,______。其中______的限定范围最大。
程序设计语言的基本成分是数据成分、运算成分、控制成分和()。
下列是Java程序,演示的是变量类型的强制转换,请补充划线的部分,使输出结果为b=12。 publicclassTestaaa{ publicstaticvoidmain(Stringargs[]) { short
常用的黑箱测试有等价分类法、【】、因果图法和错误推测法4种。
Java语言的类间的继承关系是
下面是一个Applet程序,其功能是用一组坐标点绘制一个多边形,并通过沿坐标的垂直方向移动,把它移到窗口的下半部分,然后填充它。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。注意:不改动程序的结构,不得增行或删行。源程序文件
结构化设计方法(SD)与结构化分析方法(SA)一样,遵循()模型,采用逐步求精技术,SD方法通常与SA相联,即依据数据流图设计程序的结构。
Swing组件中可以通过拖动控件来设置数值的是()。
随机试题
权利至上道德观容易在组织中产生对生产效率不利的工作氛围。()
脑血栓的错误护理措施
某储户要求存3年期积零成整储蓄,到期支取本息60000元,如果月利率为6‰,每月应存多少元()。
出境的交通工具和人员,必须在最先到达的国境口岸接受检疫。()
小勇认为自己学习成绩不好是因为自己不够聪明,根据维纳的归因理论,这属于()。
【2010年新疆自治区第34题】有一条堤全长500米,从头到尾每隔5米种植白杨树一棵,一共可以种()棵。
关于走私、贩卖、运输、制造毒品罪,下列说法正确的是()。
Theworld’spopulationcontinuestogrow.Therenowareabout4billionofusonearth.Thatcouldreach6billionbytheendof
PassageFourWhatisthefunctionofthe5thparagraphinthepassage?
Tworecentinnovationshavegainedalotofattentionforthewaytheyempowerwomen.Oneismicrocredit(小额贷款),asystemhelping
最新回复
(
0
)