问题 单项选择题

当一个模块直接使用另一个模块的内部数据,或者通过非正常入口转入另一个模块内部,这种模块之间的耦合为()。

A.数据耦合

B.标记耦合

C.公共耦合

D.内容耦合

答案

参考答案:D

解析:

本题考查软件设计的基础知识。

模块独立性是创建良好设计的一个重要原则,一般采用模块间的耦合和模块的内聚两个准则来进行度量。耦合是模块之间的相对独立性的度量,模块之间的连接越紧密,联系越多,耦合性就越高,而其模块独立性越弱。存在多种耦合关系:

数据耦合:若一个模块访问另一个模块时,彼此之间是通过数据参数(不是控制参数、公共数据结构或外部变量)来交换输入、输出信息的,则称这种耦合为数据耦合。

标记耦合:若一组模块通过参数表传递记录信息,则这种耦合称为标记耦合。

公共耦合:若一组模块都访问同一个公共数据环境,则它们之间的耦合就称为公共耦合。

内容耦合:若一个模块直接访问另一个模块内部数据;一个模块不通过正常入口转到另一模块内部;两个模块有一部分程序代码重叠;一个模块有多个入口。存在上述情况之一,则这种耦合称为内容耦合。

阅读理解

The illegal ivory trade has been a major problem in Africa for decades. Poachers(偷猎者) and hunters have killed off hundreds of thousands of elephants to obtain this precious material. Now, affected areas are taking action. The International Union for Conservation of Nature (IUCN) announced on Wednesday that key states where poaching takes place have promised to stop the ivory trade and protect Africa’s elephants.

In the 1980s, as many as 1 million elephants across Africa were killed for their ivory tusks. This continued until 1989, when the Convention on International Trade in Species (CITES) voted to ban all trade in ivory. With trade choked off, demand for ivory fell. Elephant populations slowly began to increase. However, this progress was short-lived.

According to the IUCN, 2011 saw the highest levels of poaching and illegal ivory trading in at least 16 years. Around 25,000 elephants were killed in Africa that year. Preliminary data from the IUCN shows even higher levels of illegal trade may have been reached in 2013. “With about 22,000 elephants illegally killed in 2012, we continue to face a critical situation,” said John E. Scanlon, CITES Secretary-General. “Current elephant poaching in Africa remains far too high, and could soon lead to local extinctions if the present killing rate continues.”

At the African Elephant Summit, key African states where elephants make their home agreed to develop a “zero-tolerance attitude” towards poaching. The deal calls for maximum sentences for poachers and hunters, and increased cooperation between affected states. Officials are determined to classifying wildlife trading as a serious crime — and to making sure that the people who commit it are punished. All participants at the conference agreed to sign the deal. With these states coming together, there may yet be hope for elephants. (293 words)

小题1:What’s the best title for this passage?

A.New Hope for Elephants.

B. Elephants are dying.

C.Elephants are valuable.

D. How to protect elephants小题2:The underlined phrase “choked off” in Paragraph 2 can be replaced by “________”.

A. appreciated

B. prevented

C. admitted

D. explored小题3:Which of the following statements is NOT true according to the passage?

A.The CITES has helped to improve elephants’ situation ever since 1989.

B.Around one million elephants across Africa were killed for their ivory tusks in the 1980s.

C.The poaching and illegal ivory trading in 2011 were very serious.

D.The situation of elephants in 2012 was still terrible.小题4: All of the following measures will be taken to protect elephants EXCEPT ________.

A.to identify wildlife trading a serious crime

B.to punish those who buy or sell wildlife belongings

C.to sentence all wildlife poachers and hunters to death

D.to work together to fight against wildlife hunting小题5:What’s the main idea of this passage?

A.The illegal ivory trade has been a major problem in Africa.

B.Elephants in Africa may die out because of the illegal poaching.

C.Hunting elephants will be recognized as a very serious crime.

D.A new agreement aims to develop a “zero-tolerance attitude” towards poaching.

单项选择题