问题 单项选择题

耦合性和内聚性是对模块独立性度量的两个标准。下列叙述中正确的是______。

A.提高耦合性降低内聚性有利于提高模块的独立性
B.降低耦合性提高内聚性有利于提高模块的独立性
C.耦合性是指一个模块内部各个元素间彼此结合的紧密程度
D.内聚性是指模块间互相连接的紧密程度

答案

参考答案:B

解析: 模块独立性是指每个模块只完成系统要求的独立的子功能,并且与其他模块的联系最少且接口简单。一般较优秀的软件设计,应尽量做到高内聚,低耦合,即减弱模块之间的耦合性和提高模块内的内聚性,有利于提高模块的独立性,所以A选项错误,B选项正确。耦合性是模块间互相连接的紧密程度的度量,而内聚性是指一个模块内部各个元素间彼此结合的紧密程度,所以C选项与D选项错误。

填空题
阅读理解

"Hitler and the Germans," an exhibition in Berlin's German Historical Museum which aims to investigate the society that created Hitler, has seen more than 10,000 visitors walk through its doors since opening on Friday.

Rudolf Trabold, a spokesman for the museum, said there were 4,000 visitors to the exhibition on the first day alone. People visiting the exhibition said they had waited as long as one and a half hours to get in. Ravi Nair, a 73-year-old Indian visitor, said: "I had to queue for about an hour but it was worth it. The exhibition should help people in democratic countries realize that their vote is very valuable."

Trabold said “Hitler and the Germans” was so popular because it was the first exhibition to explain how a man who lived on the margins of society for 30 years, in Vienna's men's hostels, could become an almost mythical(神话的)leader of the German people. "We are all affected by Hitler, so it speaks to all of us and helps Germans and foreigners to come to terms with the past." Inge Lonning, a 72-year-old tourist from Norway said: "I thought the exhibition was very impressive. I wanted to see it because I experienced the German occupation of Norway as a small child, so it's not just history for me." But not everyone was convinced there was something new to be learned from the exhibition. "So much has been done about this period over the years, it was like, I knew this and I knew that," said Canadian Julien Cayer, aged 28. "I thought I'd find something new but I didn't."

There has been widespread concern in the German media that the exhibition could become a magnet for neo-Nazi admirers of Hitler, but Trabold said that although there had been some right-wing extremist visitors, they had not caused any problems.

小题1:What is the main idea of the passage?

A.People have different attitudes to “Hitler and the Germans”.

B.“Hitler and the Germans” attracts plenty of people.

C.What effect “Hitler and the Germans” has on history.

D.What people should learn from “Hitler and the Germans”.小题2:“Hitler and the Germans” is open to ________.

A.remind people not to forget history.

B.show how Hitler was hated by people

C.study the society that created Hitler

D.save money for economy growth小题3:Trabold thought “Hitler and the Germans” was so popular because ________.

A.help people in democratic countries realize that their vote is very valuable

B.it was the first exhibition to explain how a man from the bottom of society becomes a leader

C.people can learn a lot from the exhibition

D.people have been affected by Hitler小题4:Who experienced the German occupation according to the passage?

A.Inge Lonning.

B.Ravi Nair.

C.Rudolf Trabold.

D.Julien Cayer小题5:What can we learn from the passage?

A.The visitors coming to “Hitler and the Germans” are all old people.

B.“Hitler and the Germans” has made an impression on every visitor.

C.Some neo-Nazi admirers of Hitler have caused a lot of trouble.

D.People visit “Hitler and the Germans” with variety of purposes.