Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(1) Which of the following is an entity class? (a) OrderWindow (b) PlaceOrder (c

ID: 3830880 • Letter: #

Question

(1) Which of the following is an entity class?

(a) OrderWindow
(b) PlaceOrder
(c) OrderControl
(d) Customer

(2) Messages in sequence diagram become

(a) Methods in classes in the class diagram
(b) Use cases in use case diagram
(c) Actors in use case diagram
(d) Attributes in classes in the class diagram

(3) Which sequence is better?

(a) Actor-control-entity-boundary
(b) Actor-entity-control-boundary
(c) Actor-entity-boundary-control
(d) Actor-boundary-control-entity

(4) "Martin and you are working on a video rental system. Martin has identified Video, Customer, and Payment as classes. What type of classes are these?"

(a) Control as they coordinate activities across use cases
(b) Boundary as they are the point of contact for users to our system
(c) SuperClasses
(d) Entity as they model persistent data

(5) An external scanning system is to communicate with our video rental system to send us the bar code information from the videos that are scanned. Which of the following should this system use to communicate with our system?

(a) a control class
(b) a boundary class
(c) an entity class
(d) an interface

Explanation / Answer

1) OrderWindow is an entity class.
2) Messgae in the sequence diagrams represents some actions happening between two entities, hence they become methods in class diagram.
3) Actor- Boundary-Control-entity
as actors can only talk to boundaries, boundaries can onlky talk to actors and controllers and entity objects can only talk to controllers hence above sequence.
4) We have Video, Customer, Payment and these are entities as they will model the persistent data and actions will happen around these.
5) As an external scanning system is something outside our system and will be there as an actor and needs to communicate to boundary class (as actors can only talk to boundary class)