问题 单项选择题

下列叙述中正确的是

A.接口复杂的模块,其耦合程度一定低

B.耦合程度弱的模块,其内聚程度一定低

C.耦合程度弱的模块,其内聚程度一定高

D.上述三种说法都不对

答案

参考答案:C

解析: 影响模块之间耦合的主要因素有两个:模块之间的连接形式,模块接口的复杂性。一般来说,接口复杂的模块,其耦合程度要比接口简单的的模块强,所以选项A的说法错误; 耦合程度弱的模块,其内聚程度一定高,选项B错误;选项C正确。

阅读理解

Over the years I've been teaching children about a simple but powerful concept -- the ant philosophy (哲学).I think everybody should study ants.

They have an amazing four-part philosophy, and here is the first part: ants never quit. That's a good philosophy. If they're headed somewhere and you try to stop them; they'll look for another way.

They'll climb over, they'll climb under, and they'll climb around. They keep looking for another way. What a neat philosophy, to never quit looking for a way to get where you're supposed to go.

Second, ants think winter all summer. That's an important viewpoint. You can't be so naive ( 天真的) as to think summer will last forever. So ants are gathering in their winter food in the middle of summer.

An ancient story says, "Don't build your house on the sand in the summer. " Why do we need that advice.'? Because it is important to be realistic. In the summer, you've got to think storm. You've got to think rocks as you enjoy the sand and sun. Think ahead.

The third part of the ant philosophy is that ants think summer all winter. That is so important. During the winter, ants remind themselves, "This won't last long ; we'll soon be out of here. " And on the first warm day, the ants are out. If it turns cold again, they'll dive back down, but then they come out on the first warm day. They can't wait to get out.

And here's the last part of the ant-philosophy. How much will an ant gather during the summer to prepare for the winter? All he possibly can. What an incredible philosophy, the "all-you-possibly-can" philosophy.

Wow, what a great seminar to attend -- the ant seminar. Never give up, look ahead, stay positive and do all you can.

小题1:If you try to stop ants going forward, they will

A.climb over your head

B.quit looking for a way

C.search for another way

D.keep climbing around小题2:What is the second philosophy of ants?

A.Think winter all summer.

B.Always be realistic.

C.Never become lazy in summer.

D.Always look ahead.小题3:Which of the following can best describe the third part of the ant philosophy?

A.Always stay positive.

B.Always remind yourself.

C.Always think summer.

D.Always be hardworking.小题4:We can learn from the last part of the ant philosophy that we should

A.never stop gathering food in the summer

B.always get prepared for the winter

C.gather as much as possible for the future

D.do whatever we can for the future小题5:Which of the following is the best title for the passage?

A.The Concept of Ants

B.The Ant Philosophy

C.Never Give up

D.Do All You Can

单项选择题