您的当前位置:首页正文

华南理工大学2007级《软件需求分析、设计与建模》试卷_A卷

2021-11-23 来源:星星旅游
( 密 封 线 内 不 答 题 ) ………………………………………密………………………………………………封………………………………………线…………………………………… 学院 专业 座位号 诚信应考,考试作弊将带来严重后果!

华南理工大学期末考试

《面向对象分析与设计》试卷

注意事项:1. 考前请将密封线内填写清楚;

2. 所有答案请直接答在试卷上(或答题纸上); 3.考试形式:闭卷;

4. 本试卷共 5 大题,满分100分, 考试时间120分钟。 题 号 一 得 分 评卷人 二 三 四 五 总分 姓名 学号 1. Single Choice & Short Answer (each choice worths 2 points,each blank worths 1 points , 25 points total ) 1) Object-Oriented Technologies have the following benefits ( )

A. Increased encapsulation

B. Decreased coupling between modules C. High level of abstraction D. All of the above 2) Which of the following statements are false? ( )

A. A class can have a relationship to itself.

B. An object can have a relationship to other objects of the same class. C. A class can have only one relationship to another class. D. A relationship can exist with a cardinality of zero. 3) Which of the following models could be supported by Rational Rose? ( ) A. Business Use Case diagram B. Use Case diagram C. Activity diagram D. Component diagram

4) Which of the following are NOT TRUE about the use case diagram? ( )

A. Use Case diagrams show the interactions between use cases and actors. B. Use Case diagrams show which actors initiate use cases.

C. Use Case diagrams are used to show the flow of functionality (event)through a use case. D. Use Case diagrams illustrate that an actor receives information from a use case.

5) A car has four wheels. The class car and the class wheel have what type of relationship? ( ) A. Association B. Aggregation C. Inheritance

《面向对象分析与设计》试卷第 1 页 共 7 页

_____________ ________ D. Realization

6) What is true about messages in scenarios? ( )

A. The operation of the calling object. B. The operation of the called object. C. It is sent by the actor to the system. D. It is sent by the system to the actor.

7) dynamic model describe the system change with time.includes:

___ interaction ______ , __ activity ________ and ___ statechart __________.

8) What are the four view in Rose Model?

_____ Use Case _________ ,______ Logical ___________,

______ Component ________ and _____ Deployment ___________ .

9) Which two UML diagrams can represent concurrent processing?

______ statechart ________ and ______ activity __________ . qa

10) The UML architecture is a four-layer metamodeling architecture. This architecture is a proven

infrastructure for defining the precise semantics required by complex models ,Which include

____meta-metamodel____________ , _____metamodel____________ ,

_____model___________ and ____user object_____________ .

2. Explain the following Concepts and Give an Example . (each question worths 3 points. 15

points total )

1) Collaboration Diagrams

A collaboration diagram emphasizes the organization of the objects that participate in an interaction.

2) Use Cases

《面向对象分析与设计》试卷第 2 页 共 7 页

Defines a set of use-case instances, where each instance is a sequence of actions a system performs that yields an observable result of value to a particular actor.

3) Association Relationship

The semantic relationship between two or more classifiers that specifies connections among their instances.

4) Encapsulation

Hides implementation from clients.

5) Generalization

A relationship among classes where one class shares the structure and/or behavior of one or more classes.

《面向对象分析与设计》试卷第 3 页 共 7 页

3. Draw class diagram for the following scenario. Be sure to include multiplicities on the ends of the connectors. (10 points) Mini Office

The following scenario is for a mini office. Each office has up to 10 members and 2 managers. Each manager has their own room, while members are in the main hall. Each member has their own seat. And each seat has a unique id number.

4. Point out the wrong place in the following diagram . (10 points ) Class Diagram: 分析类 / 分析类图

《面向对象分析与设计》试卷第 4 页 共 7 页

5. OO Modeling (40 Points total ) (40 Points total )

1) Write down all candidate objects and candidate actions in the following usage scenario (10 points)

《面向对象分析与设计》试卷第 5 页 共 7 页

This is a student registration system. There are full-time and part-time students. Each class has a set of scheduled times and a number of credit hours. When a user tries to register for a class, the system checks their schedule for time-conflicts. If there is a conflict, an error is returned. If there is no error, then the system checks to see if the total number of hours including this class is no more than the maximum number of hours for a full-time student. If so, then the system returns an error. If no problems are found, the system registers the student for the class, and informs the user of success.

2) Produce a class diagram to model the system. (Make sure to include all objects and actions that you will need for the sequence diagram you will produce in part 3 below.) (15 points )

3) Produce a sequence diagram to model the success-case of this scenario (i.e. the sequence of actions performed when there are no errors.) Please label everything with meaningful names, or include a description of each label. (15 points)

《面向对象分析与设计》试卷第 6 页 共 7 页

《面向对象分析与设计》试卷第 7 页 共 7 页

因篇幅问题不能全部显示,请点此查看更多更全内容