问题 单项选择题

下列叙述中正确的是

A.在模块化程序设计中,一个模块应尽量多地包括与其他模块联系的信息

B.在自顶向下、逐步细化的设计过程中,首先应设计解决问题的每一个细节

C.在模块化程序设计中,一个模块内部的控制结构也要符合结构化原则

D.在程序设计过程中,不能同时采用结构化程序设计方法与模块化程序设计方法

答案

参考答案:C

解析: 选项A错误,在模块化设计中,要求将一个大程序按人们能理解的大小规模进行分解,使每个模块都能易于理解,各模块的功能尽量单一,各模块之间的联系尽量的少。 选项B错误,自顶向下、逐步细化的设计过程土要包括两个方面:将复杂问题的解法分解和细化成由若干模块组成的层次结构;将一个模块的功能逐步分解细化为一系列的处理步骤,直到某种程序设计语言的语句或某种机器指令。即在自顶向下、逐步细化的设计过程中,是按照先全局后局部、先整体后细节、先抽象后具体的方法设计程序。 选项D错误,由于在模块化程序设计中,一个模块内部的控制结构也要符合结构化原则,所以,在程序设计过程中,结构化程序设计方法与模块化程序设计方法是要同时采用的。 选项C为正确答案。

判断题
单项选择题

When Dave was eighteen, he bought a secondhand car for 200 so that he could travel to and from work more (1) than by bus. It worked quite well for a few years, but then it got so old, and it was costing him (2) much in repairs that he decided that he had better (3) it.

He asked among his friends to see if anyone was particularly (4) to buy a cheap car, but they all knew that it was falling to pieces, so (5) of them had any desire to buy it. Dave’s friend Sam saw that he was (6) when they met one evening, and said, "What’s (7) , Dave"

Dave told him, and Sam answered, "Well, what about advertising it in the paper You may (8) more for it that way than the cost of the advertisement!" Thinking that Sam’s (9) was sensible, he put an advertisement in an evening paper, which read "For sale: small car, (10) very little petrol, only two owners. Bargain at 50. " For two days after the advertisement first appeared, there was no (11) . But then on Saturday evening he had an enquiry. A man rang up and said he would like to (12) him about the car. "All right, " Dave said, feeling happy. He asked the man whether ten o’clock the next morning would be (13) or not. "Fine, " the man said, "and I’ll (14) my wife. We intend to go for a ride in it to (15) it. "

The next morning, at a quarter to ten, Dave parked the car in the square outside his front door, (16) to wait there for the people who had (17) his advertisement. Even Dave had to (18) that the car really looked like a wreck. Then, soon after he had got the car as clean (19) it could be, a police car stopped just behind him and a policeman got out. He looked at Dave’s car and then said, "Have you reported this (20) to us yet, sir\

6().

A.delighted 

B.upset 

C.calm 

D.astonished