问题 单项选择题

模块本身的内聚是模块独立性的重要度量因素之—。在7类内聚中,具有最强内聚的一类是

A.顺序性内聚

B.过程性内聚

C.逻辑性内聚

D.功能性内聚

答案

参考答案:D

解析: 内聚是从功能角度来度量模块内的联系,一个好的内聚模块应当恰好做一件事,它描述的是模块内的功能联系。内聚有7个种类,它们之间的内聚度从弱到强排列如下:偶然内聚、逻辑内聚、时间内聚、过程内聚、通信内聚、顺序内聚、功能内聚。

单项选择题
完形填空

Read the passage and fill in the blanks with proper words(在短文的空格内填入适当的词,使其内容通顺,每空格限填一词,首字母已给)(14分)

A pearl necklace(项链)

Penny was a five-year-old girl. One day when she and her mother were at a grocery store, Penny saw a plastic pearl necklace. What a b  小题1:  necklace! She wanted it very much, so she begged her mother to buy it for her. The mother said, “Well, I can buy you the necklace, but when we get home, we should discuss what you can do to pay for it. Can we do that?” Penny agreed with much h   小题2:  , and she got the plastic necklace she liked.

How much Penny loved the necklace! She 小题3:  it everywhere and every minute. Penny also did part time jobs to earn pocket money and she worked very hard. Soon she managed to pay off the price for the necklace.

Penny’s daddy knew all her e  小题4:  and knew how much Penny cared about the necklace. One night, he asked Penny, “Penny, do you love me?”

“Sure, Daddy, ” the little girl said.

“Then how about giving me your necklace?”

“Oh, no , Daddy! N  小题5:   my necklace!” Penny cried.

“Oh, dear, it’s fine,” her father gave her a kiss.

Several days l  小题6: , Penny went to her daddy, with her lips(嘴唇) trembling(颤抖). “Here, Daddy. I love you.” She held out her hand. Inside it was her beloved plastic pearl necklace.

Seeing this, Penny’s father smiled with surprise. He then pulled a cute box out of his pocket. Inside the box was a r  小题7:  and colourful pearl necklace, which was waiting for Penny for so long.