计算机四级c 试题,全国计算机等级考试四级试题(二)(2)

议,第二个协议UDP(User Datagram Protocol)是

A.一种可靠的面向连接的协议

B.一种不可靠的面向连接的协议

C.一种可靠的无连接协议

D.一种不可靠的无连接协议

(61) There are several periods in a computer,the shortest period is

A.Instruction period

B.Machine period

C.Beat period

D.CPU period

(62) Which set is empty?

A.{xx is a real number and x2=9 B){xx is a real number and x2-1=0}

C){xx is a real number and x2+1=0} D){xx is a real number and x=2x+1}

(63) What is the relation represented in the exhibit shown below?

A.R={(1,2),(1,3),(1,4),(1,5)}

B.R={(1,1),(2,2),(3,3),(4,4),(5,5)}

C.R={(1,2),(1,3),(1,4),(2,3),(4,1),(4,5),(5,5)}

D.R={(1,2),(1,3),(1,4),(2,2),(2,3),(4,1),(4,4),(4,5)}

(64) What is the contrapositive of the following implication?“If it is raining,then I get wet.”

A.If I get wet,then it is raining.

B.If I am wet ,then if is raining.

C.If it is not raining, I do not get wet.

D.If I do not get wet,then it is not raining.

(65) Which property does R posses? (2 grades)

Let A={1,2,3,4} and let R ={;1,2;,;2,2;,;3,4;,;4,1;}

A.Symmetry

B.Reflexivity

C.Asymmetry

D.Antisymmetry

(66) When walking a tree, which traversal method yields a prefix, or Polish,form?

A.lnorder

B.Preorder

C.Postorder

D.Reorder

(67) ln the following statements about graph operations, which one is NOT correct?

(2 grades)

A.Spanning tree of a graph may not be unique.

B.Minimum spanning tree of a graph may not be unique.

C.Finding critical path is an operation on directed graph.

D.Finding critical path is an operation on undirected graph.

(68) Which traversal method for a binary tree does the following Pascal code illustrate? (2 grades)

procedure traverse(p:pointer);

begin

if p;;nil

then begin

traverse(p↑.left);

process(p);

traverse(p↑.right)

end

end;

A.lnorder

B.Preorder

C.Postorder

D.Reorder

(69) What storage scheme does MS-DOS use for storing files on a disk?

A.I-nodes

B.a linked list allocation

C.a continuous allocation

D.a linked list with index

(70) Which of the followings is NOT a condition for deadlock?

A.Starvation

B.Circular Wait

C.No Preemption

D.Mutual Exclusion

(71) Assume that an operating system uses a round-robin scheduler. The process’s quantum is 20 msec,and the context switch is 5 msec. What percentage of the CPU’s time is spent on administrative overhead? (2 grades)

A.5%

B.15%

C.20%

D.25%

(72) What state is a process in when it can’t run because it needs a resource to become available? (2 grades)

A.Ready

B.Interrupt

C.Blocked

D.Running

(73) The following sectors are requested from the disk:

11,1,36,16,34,9,12

What is the order of the sector reads if you are using the elevator algorithm?

(2 grades)

A.1,9,11,12,16,34,36

B.11,1,36,16,34,9,12

C.11,12,9,16,1,34,36

D.11,12,16,34,36,9,1

(74) What is the candidate key of a relational database?

A.A field with a constraint placed on it.

B.A set of fields that have no data in them.

C.A set of fields in a table used to identify a record uniquely.

D.Fields from multiple tables that are used for sorting records.

(75) What Normal From is the table shown in the exhibit? (2 grades)

emps tbl

emp_idemp_nameemp_phonedept_namedept_phonedept_mgrname

(1) emp_id→emp_name, emp_phone, dept_name(2) dept_name→dept_phone, dept_mgrname

A.1NF

B.2NF

C.3NF

D.BCNF

(76) Which operating system can Oracle database NOT be used in?

A.DOS

B.UNIX

C.Windows95

D.IBM Mainframes

(77) Which values are NOT permitted to be part of the primary key?

A.NULL

B.punctuation

C.special characters

D.alpha-numeric characters

(78) Which phase of the software engineering process results in the Software Requirements Specification?

A.definition phase

B.engineering phase

C.maintenance phase

D.development phase

(79) When drawing multilevel data flow chart of top-down, the balance between parent chart and son chart must be taken into account, and to pass judgment for the balance of the charts is regularly maintained by (2 grades)

A.Output data

B.Data dictionary

C.Processing number

D.Input data

(80) Which is the strictest form of cohesion?

A.logical

B.functional

C.procedural

D.coincidental

(81) Which is NOT a concept of White Box Testing? (2 grades)

A.You should execute all loops at their boundary conditions.

B.You should execute all interfaces at their boundary conditions.

C.You should execute all logical decisions on their true and false sides.

D.You should execute all independent paths within a module at least once.

(82) Prototyping method is a dynamic design process, it requires people who use prototyping method should have the following capability

A.Proficient program expertise

B.Immediately acquire requirement

C.Coordinate %26amp; organize eloquently

D.Handle tools smartly

(83) There are two styles in the evolution of instruction set , that is CISC and RISC. Which chip belongs to the RISC?

A.i APX 432

B.VAX-11/780

C.Motorola 68000

D.Power PC

(84) In advanced PC bus or local bus, which one has the fastest data throughput?

A.ISA

B.PCI

C.MCA

D.EISA

(85) There are many methods in the CPETT(short for Computer Performance Evaluation Tools and Techniques). One of them is the method that runs a Kernel as the load of a computer. So we call it

A.Monitor method

B.Benchmark method

C.Model method

D.Physical method

(86) There are two common types in page replacement algorithm: stack and non-stack strategies. When a real page number increase only stack algorithm can increase the hit rate monotonously. In the following replacement algorithm,which one belongs to non-stack strategy?(2 grades)

A.FIFO

B.LRU

C.PFF

D.OPT

(87) What binary number is encoded with Differential Manchester in the diagram below? (2 grades)

A.10110011100

B.11001100011

C.11000110010

D.00111001101

(88) Each host or router on the Internet has its own IP address. There are four IP addresses as followings. Which IP address is erronedus?

A.189.132.2.1

B.255.255.255.0

C.198.73.265.50

D.192.0.0.3

(89) When should Frequency Division Multiplexing be used?

A.when the attenuation on a medium is greater than 25%.

B.when the white noise on the medium exceeds 50% of the medium’s bandwidth

C.when the achievable data rate of the medium exceeds the data rate of the digital signals to be transmitted

D.when the useful bandwidth of the medium exceeds the required bandwidth of the digital signals to be transmited

(90) The universe of hypertext servers that allow text, graphics, sound, and other multimedia files to be viewed togather and navigated via hypertext links. It is now the fastest growing area of the Internet. It is

A.Gopher

B.WWW

C.E-mail

D.FTP

二、论述题(两个论述题可任选其一,并只选其一,多选无效,满分30分。)

论述题1

本题要求设计一个学生试卷成绩输入、查询和成绩单输出系统(简称SRS)的数据结构和算法要点。问题描述如下:

要输入到SRS 系统中的每一份试卷成绩反映一个学生选修一门课程的考试结果,它包括以下数据项:学号、姓名、课程名、成绩。由于实行了灵活的选课制度,所以每个学生选修多少门课程,选修哪些课程都可以不同。要输入的多份试卷成绩并未按任何数据项排列顺序,它们以任意的顺序被输入到系统中来。

SRS系统要具有以下功能:①试卷成绩插入,将试卷成绩逐个插入到SRS系统的数据结构中。②学生成绩查询,给出学号查找该学生所选修的各门课程的考试成绩。③成绩单输出,按学号递增的顺序依次输出所有学生的学号、姓名,及其所选修的各门课程的课程名和成绩。(为简单起见,假设上述所有工作都在计算机内存中进行。)

请设计SRS系统的数据结构和算法要点,使上述三项操作都有较高的执行效率。从以下方面阐述你的设计:

(1) SRS系统的数据结构(15分)

①数据结构的Pascal语句描述

②数据结构的示意图

③数据结构的简单文字说明

(2) SRS系统的算法要点(10分)

(只要简单的文字说明,不必写出Pascal程序)

①试卷成绩插入

②学生成绩查询

③成绩单输出

(3) 简单陈述你的上述设计的理由(5分)

论述题2

在一个盗窃案件中,已知下列事实:

①甲或乙是窃贼。

②若甲是窃贼,做案时间不会发生在夜间12点钟以前。

③若乙的证词正确,在夜间12点钟时被盗物品所在房间灯光未灭。

④若乙的证词不正确,则做案时间发生在夜间12点钟以前。

⑤夜间12点钟被盗房间灯光灭了。

根据以上事实解答或论证以下各题:

(1) 将①~⑤中所出现的简单命题符号化,然后用命题符号写出①~⑤各复合命题的符号化形式。(10分)

(2) 以(1)中给出的5个复合命题为前提,判断甲、乙二人谁是窃贼(以符号形式给出)。(5分)

(3) 用命题逻辑推理理论写出(2)中结论的判断过程(要求写出每一步所用的推理规则)。(15分)

1997年全国 计算机等级 考试四级笔试试卷

答案及评分标准

一、选择题:(共90题,分为1分题和2分题,满份120分。带“*”的题为2分题,其余均为1分题。)

1.B 2.C * 3.C * 4.A 5.D

6.B * 7.B 8.B 9.D 10.C

* 11.C 12.B 13.D 14.C 15.C

* 16.D 17.C 18.B * 19.D 20.C

21.D 22.C 23.B * 24.C 25.A

26.D 27.B * 28.A 29.C * 30.C

* 31.A 32.D 33.B 34.D * 35.B

36.B 37.D * 38.B 39.A 40.D

* 41.C 42.D 43.D 44.A 45.A

46.C 47.D * 48.C * 49.B * 50.D

* 51.C * 52.B * 53.D 54.C 55.C

56.A 57.C 58.A 59.B 60.D

61.B 62.C 63.D 64.D * 65.D

66.B * 67.C * 68.A 69.C 70.A

* 71.C 72.C * 73.D 74.C * 75.B

76.A 77.A 78.A * 79.B 80.B

* 81.B 82.B 83.D 84.B 85.B

* 86.A * 87.B 88.C 89.D 90.B

二、论述题(两个论述题可任选其一,并只选其一,多选无效,满分30分)

论述题1评分参考:

本题可有多种不同的设计方案,下面给出其中一个较好的方案。

(1) 数据结构(15分,其中对三种操作的有效支持各4分,叙述的条理性3分。)

① 数据结构的Pascal语句描述

TYPE pptr=↑pnode;

pnode=RECORD

cname:string;

score:0..100;

next:pptr

END;

sptr=↑pnode;

snode=RECORD

sno:integer;

sname:string;

llink,rlink:sptr;

plink:pptr

END;

VAR t:sptr;

② 数据结构的示意图

③ 数据结构的简单文字说明

每个学生结点包含学生的学号和姓名,所有学生结点组织成一棵二叉排序树,用link-rlink法存储。

每份试卷成绩作为一个链表结点,包含课程名和成绩,每个学生的所有试卷成绩结点链接成一个单链表,并且二叉排序树的学生结点中有一个指针指向该单链表的第一个结点。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值