首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在下列程序中: Program test(input,output); var i,j:integer; procedure calc(p1,p2:integer); begin p2:=p2*p2 p1:=p1-p2;p2:=p2
在下列程序中: Program test(input,output); var i,j:integer; procedure calc(p1,p2:integer); begin p2:=p2*p2 p1:=p1-p2;p2:=p2
admin
2019-03-04
24
问题
在下列程序中:
Program test(input,output);
var i,j:integer;
procedure calc(p1,p2:integer);
begin p2:=p2*p2 p1:=p1-p2;p2:=p2-p1;end{caic}
begin{main}I:=2;j:=3;
calc(i,j);write(j);
end{main}
当参数传递采用引用方式(Call by Reference)时,所得结果j=(16);
当参数传递采用换名方式(Call by Name)时,所得结果j=(17):
当参数传递采用赋值方式(Call by Value)时,所得结果j=(18)。
递归是程序设计中很重要的一种控制结构,通常实现递归时,采用的数据结构是(19)。
对那些既可以用递归方式,也可以用循环方式求解的问题,就执行效率而言(20)。
选项
A、0
B、3
C、5
D、6
E、16
答案
E
解析
转载请注明原文地址:https://jikaoti.com/ti/Qix7FFFM
本试题收录于:
数据库系统工程师上午基础知识考试题库软考中级分类
0
数据库系统工程师上午基础知识考试
软考中级
相关试题推荐
在项目风险识别中使用信息收集技术,依据系统的程序,专家之间采用匿名发表意见的方式,不发生横向联系,只与调查人员发生关系,通过多轮次调查专家对问卷所提问题的看法,经过反复征询、归纳、修改,最后汇总成专家们都认可的、基本一致的看法作为预测的结果。此种风险识别的
某地区的通信线路图如图18-1所示,假设其中标注的数字代表通信线路的长度(单位为km),则至少要架设()km长的线路,才能保持六个城市的通信连通。
根据《计算机信息系统集成企业资质等级评定条件(2012年修订版)》,关于计算机信息系统集成项目管理人员资质的人数要求,下面说法不正确的是()。
你的公司确定签订制药研究项目的项目管理合同。由于你的公司以前未接触过项目管理,不了解根据合同可能所需服务的完整范围,所以最适当的是签订()。
信息系统工程合同应该属于()合同形式。
在客户关系管理(CustomerRelationshipManagement,CRM)系统中,管理的对象是客户与企业之间的双向关系,在开发过程中,()是CRM开发的最主要目标。
按照标准GB/T16260.1《软件过程产品质量第1部分质量模型》规定,软件产品的“安全性”属性属于(13)评价内容。
国家电子政务总体框架主要包括:服务与应用;信息资源;(4);法规、法则与标准化;管理体制。
根据GB/T-17544,软件包质量要求包括三部分,即产品描述要求、()、程序和数据要求。
随机试题
写在嘉奖令正文最前面的部分应当是()
鉴定ABO亚型所需要的试剂红细胞不包括
A.热则寒之B.寒则热之C.阳病治阴D.阴病治阳E.阴中求阳适用于虚热证的治法是
图示桁架的所有杆件EA值均相同,哪一种桁架A点的竖向位移最小?
下列关于建筑工程费估算方法的说法,正确的是()
以下选项中,属于李白著名诗句的是()。
你单位决定组织一次公益活动,组织员工去公园捡垃圾,请问你怎么组织?
开放的社会流动机制是_________下层社会怨气的根本手段,但同时也意味着主流社会空间将面临巨大的风险。尤其是在身份制并未完全_______的今天,稍有不慎,来自下层的政治风险就会随之而来。依次填入画横线部分最恰当的一项是()。
下列情况下不属于刑法规定的立功表现的是()。
ActiveinOldAgeKeepsPeopleMobilePeopleover70whoaren’tactivearemorelikelytodevelopproblemswalkingorclimbi
最新回复
(
0
)