问题 单项选择题

数据耦合和控制耦合相比,( )。

A.控制耦合更强

B.数据耦合更强

C.两者相当

D.孰强孰弱,需视具体情况而定

答案

参考答案:A

解析: 本题考查耦合的分类。耦合是软件结构中各模块之间相互连接的一种度量,耦合强弱取决于模块间接口的复杂程度,按耦合度由高到低依次为:内容耦合(一个模块直接访问另一模块的内容)、公共耦合(一组模块都访问同一全局数据结构)、外部耦合(一组模块都访问同一全局数据项)、控制耦合(一模块明显地把开关量、名字等信息送入另一模块,控制另一模块的功能)、标记耦合(两个以上的模块都需要其余某一数据结构的子结构时,不使用其余全局变量的方式而是使用记录传递的方式)、数据耦合(一个模块访问另一个模块,被访问模块的输入和输出都是数据项参数)、非直接耦合(两个模块没有直接关系,它们之间的联系完全是通过程序的控制和调用来实现的)。故本题选择A。

阅读理解

Dogs wag(摇摆) their tails in different directions depending on whether they are excited and wanting to move forward or threatened and thinking of moving back,a study has found.

Researchers in Italy examined the tail wagging behaviour of 30 dogs,catching their responses to a range of stimuli(刺激物) with video cameras.To conduct the study they chose 15 male dogs and 15 female ones aged between one and six years.The dogs were all family pets whose owners had allowed them to take part in the experiment at Ban University.The dogs were placed in a large wooden box with an opening at the front to allow for them to view various stimuli.They were tested one at a time.

The researchers led by Professor Giorgio Vallortigara of the University of Trieste found that when the dogs were shown their owners—a positive experience—their tails wagged energetically to the right side.When they were shown an unfamiliar human they wagged to the right,but with somewhat less enthusiasm.The appearance of a cat again caused a right-hand side wag,although with less intensity again.The appearance of a large unfamiliar dog,similar to a German shepherd,changed the direction of tail wagging to the left.Reseachers supposed the dog was thinking of moving back.When the dogs were not shown any stimuli they tended to wag their tails to the left,suggesting they preferred company.While the changes in the tail wagging were not easily noticed without the aid of video,it was thought that the findings could help people judge the mood(心情) of dogs.Computer and video systems,for example,could be used by professional dog trainers to determine the mood of dogs that they were required to approach.

小题1:The video cameras were used to catch the dogs’ responses because _______.

A.it was easier to catch the dogs’ response changes in the tail wagging

B.the dogs were put in the wooden boxes and tested one at a time

C.they enabled the dogs’ owners to know about their dogs’ habit

D.the dogs wagged their tails in different directions when they were in different moods小题2:The underlined word “intensity” in the passage means _______.

A.surprise

B.worry

C.excitement

D.interest小题3:When there are no stimuli,a dog will _______.

A.wag to the left

B.wag to the right

C.not wag at all

D.wag to the left and then to the right小题4:The underlined word “they” refers to _______.

A.the dogs

B.the trainers

C.the systems

D.the researchers小题5:The purpose of doing the experiment is _______.

A.to train dogs for their owners

B.to help people judge the mood of dogs

C.to help dogs find company

D.to help people choose their pet dogs

单项选择题