问题 阅读理解

阅读理解。

       What do you think the future will be like? Here are some answers from some students.

Mary: Everyone will have a computer at home. There will also be many machines in the future. Then people will

         work only two or three days in a week.

Jack: The weather in he future will be very hot. People can't live on the earth. They will have to look for (寻找)

         another planet to live on.

Linda: I think the life in the future will be nice. There will be a lot of flowers and

         trees. And cities will look like parks.

Henry: Every family will have a family doctor, so people will be

          seldom ill (很少生病) They will live to 120 years old.

1. They are talking about _______. [ ]

A. computers

B. the weather in the future

C. family doctors

D. the life in the future

2. What does Mary think the life will be like in the future? [ ]

A. Machines will help people with their work.

B. Everyone will have a new house.

C. People will live a long life.

D. There will be no doctors.

3. The word "planet" means "             " in Chinese. [ ]

A. 飞船

B. 宇宙

C. 星球

D. 岛屿

4. Why does Jack think people will have to look for another planet to live on? [ ]

A. There will be many flowers and trees

B. The earth will be too hot.

C. There will be too many people.

D. There will be too many machines.

5. Who is worrying about (担心) the life in the future? [ ]

A. Mary

B. Jack

C. Linda

D. Henry

答案

1-5: DACBB

问答题

阅读以下关于UML建模技术在某前台销售子系统的应用说明,根据要求回答问题。
[说明]
某超市管理系统的前台销售子系统以最基本的方式处理销售业务。系统的功能需求如下。
(1)记录每种商品的编号、单价和现有数量。
(2)为顾客选购的商品计价、收费,并打印清单。
(3)帮助商家找出哪种商品将脱销,从而及时补充货源。
(4)随时按上级系统的要求报告当前的款货数量、增减商品的种类或修改商品定价。
(5)交接班时结算货款数目和商品数目。
每台收款机可以处理任何数目的销售事件,但一个销售事件只能由一台收款机处理。每个销售事件从收款机响应收款人员的指令开始,先向商品发送检索请求消息来查找将被出售的商品。如果该商品的数量少于下限,则向供货员发送缺货登记消息。每名供货员可以提供一种或多种商品,同一品牌的商品只能由一位供货员来提供。接着收款机发送计价和入账消息请求售出操作,再由销售事件发送记账消息给相应的账册,并控制流程返回收款机等待下一次销售操作。每本销售账册可以记录任何数目的销售事件,但一个销售事件只能由一本销售账册记录。
该销售子系统采用面向对象方法开发,系统中的类及类之间的关系用UML类图表示,图4-12是该系统类图中的一部分;系统的动态行为采用UML序列图表示,图4—13是销售事件部分的序列图。

[问题2]
识别关联的多重度是面向对象建模过程中的一个重要步骤。请根据说明中给出的描述,将图4-12中(1)~(8)空缺处的内容填写完整。

填空题