首页 > 计算机类考试
题目内容 (请给出正确答案)
[主观题]

●在下列程序中:Program test(input,output);var i,j:integer;procedure calc(p1,p2:integer);beg

●在下列程序中:

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= (33) ;

当参数传递采用换名方式(Call by name)时,所得结果j= (34) ;

当参数传递采用赋值方式(Call by value)时,所得结果j= (35) ;

递归是程序设计中很重要的一种控制结构,通常实现递归时,采用的数据结构是 (36) 。

对那些既可以用递归方式,也可以用循环方式求解的问题,就执行效率而言 (37) 。

(33) ,(34) A.10

B.16

C.20

D.28

(35) A.0

B.3

C.5

D.6

(36) A.数组

B.栈

C.队列

D.循环链表

(37) A.数组

B.两者相同

C.循环优于递归

D.递归优于循环

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“●在下列程序中:Program test(input,out…”相关的问题
第1题
下列说法错误的是()

A.软件的安装位置一定是C:\Program Files文件夹

B.软件的安装位置默认是C:\Program Files文件夹,但可以更改位置

C.很多软件的安装包中包含setup.exe,该文件通常就是安装文件

D.通过控制面板的卸载或更改程序可以卸载或修复软件

点击查看答案
第2题
A university of California counselor said ______.A.all students could overcome the anxiety

A university of California counselor said ______.

A.all students could overcome the anxiety after taking a special test anxiety program

B.almost all students felt less stressful after taking a University of California counseling course

C.students found it difficult to improve even though they had taken a special test anxiety course

D.students found it easy to relax as soon as they entered a University of California counseling course

点击查看答案
第3题
阅读下列程序,在不同的类中调用check()方法,下面哪个条件的check()方法将返回true()publicclassTest{privateintx;privateinty;publicvoidsetX(inti){x=i;}publicvoidsetY(inti){y=i;}publicsynchronizedvoidsetXY(inti){setX(i);setY(i);}publicsynchronizedbooleancheck(){returnx!=y;}}

A.check()决不能返回true

B.当setXY由多个线程访问时,check()可能返回true

C.当由多个线程分别访问setX和setY时,check()可能返回true

D.只有改变Test使得setX方法对x和y分别赋值,check()才能返回true

点击查看答案
第4题
Which of the following is NOT an audit software technique?A.Using computer programs to ext

Which of the following is NOT an audit software technique?

A.Using computer programs to extract a sample for a receivables circularisation

B.Running a computer program to test the addition of the cash book

C.Using a computer to perform an analytical review comparison of administration expenses against the prior year

D.Entering a sample of dummy sales orders through the computer system which takes customers over their credit limit to ensure the system rejects the orders

点击查看答案
第5题
TFDS-2TGrabImagesTool图像采集程序参数设置完毕之后,保存在程序所在的文件夹下的()文件中。

A.GrabImagesTool.exe

B.TFDSController.exe

C.program files

D.confi

E.dat

点击查看答案
第6题
下列程序运行的结果为:public class Example{String str=new String("good");char[]

下列程序运行的结果为:

public class Example{

String str=new String("good");

char[] ch={'a','b','c'};

public static void main(String args[]){

Example ex=new Example();

ex.change(ex.str,ex.ch);

System.out.print(ex.str+" and ");

Sytem.out.print(ex.ch);

}

public void change(String str,char ch[]){

str="test ok";

ch[0]='g';

}

}

A. good and abc

B. good and gbc

C. test ok and abc

D. test ok and gbc

点击查看答案
第7题
在系统中发现有一个文件的权限如下-r-s--x--x 1 test tdst 10704 Jul 15 2002/home/test/sh请问以下描述哪个最有可能是正确的()

A.该文件是一个正常文件,test 用户使用的 shell,test 不能读该文件,只能执行

B.该文件是一个正常文件,是 test 用户使用的 shell,但 test 用户无权执行该文件

C.该文件是一个后门程序,该文件被执行时,运行身份是 root ,test用户间接获得了 root 权限

D.该文件是一个后门程序,由于所有者是test,因此运行这个文件时文件执行权限为test

点击查看答案
第8题
program可翻译为()。

A.工具

B.循环

C.程序

D.删除

点击查看答案
第9题
以下不属于人工检测被入侵的前兆的有()

A.用管理员的帐号登录

B.在非工作时间活动出现了不是由系统维护人员创建的帐号(如test帐号)

C.出现了不熟悉的文件或程序

D.WWW主页被篡改

点击查看答案
第10题
机器人的程序以.PROGRAM开始,以.END结尾。()
点击查看答案
第11题
program()

A.程序,节目

B.企划

C.进步,发展

D.担保,保证

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改