问题 单项选择题

软件设计中划分模块的一个准则是 (15) 。两个模块之间的耦合方式中, (16) 合的耦合度最高, (17) 的耦合度最低。一个模块内部的聚敛种类中, (18) 内聚的内聚度最高, (19) 的内聚度最低。

(19)处填()。

A.偶然

B.逻辑

C.功能

D.过程

答案

参考答案:A

解析:

模块独立性是指软件系统中每个模块只涉及软件要求的具体的子功能,而和软件系统中其他的模块的接口是简单的。一般采用两个准则度量模块独立性,即模块间耦合和模块内聚。耦合是模块之间互相连接的紧密程度的度量,耦合度从低到高依次为非直接耦合、数据耦合、标记耦合、控制耦合、外部耦合、公共耦合和内容耦合;内聚是模块功能强度(一个模块内部各个元素彼此结合的紧密程度)的度量,从低到高依次为偶然内聚、逻辑内聚、瞬时内聚、过程内聚、通信内聚、顺序内聚和功能内聚。模块独立性比较强的应是高内聚低耦合的模块。

所以答案分别为(15)C,(16)D,(17)B,(18)C,(19)A。

阅读理解

A scientist who developed a way to calculate how much water is used in the production of anything from a cup of coffee to a hamburger was awarded the 2008 Stockholm Water Prize.

Professor John Anthony Allan of the University of London in Britain won the award for introducing the idea of “virtual water (虚拟水)”, a calculation method that has changed the nature of trade policy and research.

Allan has written seven books and published more than 100 papers.

The Stockholm International Water Institute said this idea is now embedded (埋藏) in the production of foods and industrial products. The institute said Allan’s work had made a big effect on global trade policy and research, especially in water-scarce (缺水的) regions.

“The improved understanding of trade and water management issues on local, regional and global scales are of the highest value for the successful and sustainable (可持续的) use of water resources,” it said.

“People do not only use water when they drink it or take a shower,” the institute said. “Behind the morning cup of coffee, there are 140 liters of water that was used to grow, produce, package and ship the beans.” That is about as much water as a person in England uses on average for all daily drinking and household needs.

“For a single hamburger, about 2,400 liters of water are needed. In the USA, the average person uses nearly 7,000 liters of virtual water every day.” It said that was more than three times the average use of a Chinese person.

小题1:Allan was awarded the prize because _______.

A.he wrote seven books on trade policy

B.he published more than 100 papers on water management

C.he found a new kind of water in water-scarce areas

D.he came up with the idea of virtual water小题2:Which of the following is TRUE according to the passage?

A.The average American uses about 7,000 liters of water a day.

B.The average Chinese uses nearly 2,300 liters of virtual water a day.

C.An Englishman usually drinks about 140 liters of coffee a day.

D.A hamburger usually contains about 2,400 liters of water.小题3:What do we learn about John Anthony Allan from the passage?

A. He won the 2008 Nobel Prize.        B. He has written over 100 books.

C. He works at the University of London.        D. He lives in the USA.

小题4:What effect does the idea of virtual water have?

A.It helps us realize the importance of trade.

B.It helps people do successful business.

C.It helps us make use of water scientifically.

D.It tells us how much water we use a day.

单项选择题