问题 单项选择题

为了使模块尽可能独立,要求【 】。

A.模块的内聚程度要尽量高,且各模块间的耦合程度要尽量强

B.模块的内聚程度要尽量高,且各模块间的耦合程度要尽量弱

C.模块的内聚程度要尽量低,且各模块间的耦合程度要尽量弱

D.模块的内聚程度要尽量低,且各模块间的耦合程度要尽量强

答案

参考答案:D

解析:模块独立性是指每个模块只完成系统要求的独立的子功能,并且与其他模块的联系最少且接口简单。软件设计,应尽量做到高内聚,低耦合,有利于提高模块的独立性。

选择题
单项选择题

"Clean your plate!" and "Be a member of the clean-plate club!" Just about every kid in the US has heard this from a parent or grandparent. Often, it’s accompanied by an appeal. "Just think about those starving orphans (孤儿) in Africa!"
Sure, we should be grateful for every bite of food. Unfortunately, many people in the US take a few too many bites. Instead of saying "clean the plate," perhaps we should save some food for tomorrow.
According to news reports, US restaurants are partly to blame for the growing bellies (肚子). A waiter puts a plate of food in front of each customer, with two to four times the amount recommended by the government, according to a USA Today story.
Americans traditionally associate quantity with value and most restaurants try to give them that. They serve large portions to stand apart from competitors and to give the customers value. They prefer to have customers complain about too much food rather than too little.
Barbara Rolls, a nutrition professor at Pennsylvania State University, told USA Today, that restaurant portion sizes began to grow in the 1970s, the same time that the American waistline began to expand.
Health experts have tried to get many restaurants to serve smaller portions. Now, apparently, some customers are calling for this too. A restaurant industry trade magazine reported last month that 57 percent of more than 4 000 people surveyed believed restaurants serve portions that are too large; 23 percent had no opinion; 20 percent disagreed.
But a closer look at the survey indicates that many Americans who can’t afford fine dining still prefer large portions. Seventy percent of those earning at least $150 000 per year prefer smaller portions, but only 45 percent of those earning less than $ 25 000 want smaller.
It’s not that working class Americans don’t want to eat healthy. It’s just that, after long hours at low-paying jobs, getting less on their plate hardly seems like a good deal. They live from paycheck to paycheck, happy to save a little money for next year’s Christmas presents.

According to the passage, working class Americans dining in restaurants ______.

A. eat less to save money
B. get less on their plate
C. want to get their money’s value back
D. do not care about their health