Made with ScholarlyMake flashcards like these from your own notes
Question:What is the purpose of a sequence diagram in UML?
Answer:A sequence diagram models the interactions between actors and objects within a system, showing the sequence of messages that take place during a particular use case.
Question:What key elements does a sequence diagram show?
Answer:It shows what objects are needed for the flow, what messages the objects send to each other, what actor initiates the flow, and the order of these messages.
Question:How are sequence diagrams ordered and what do they represent?
Answer:Sequence diagrams are interaction diagrams ordered by time, representing the sequence in which messages are sent between objects and actors.
Question:What must exist between two classes in order for one to send a message to the other in a sequence diagram?
Answer:There must be a relationship between the two classes in the class diagram.
Question:How are objects and actors depicted in a sequence diagram?
Answer:Objects and actors are listed along the top of the diagram, each with a vertical lifeline (dotted line) that begins when the object is instantiated and ends when it is destroyed.
Question:How are interactions between objects shown on a sequence diagram?
Answer:Interactions are shown by arrows (messages) drawn between the lifelines of two objects to indicate communication.
Question:What does each message in a sequence diagram generally correspond to in the class?
Answer:Each message generally corresponds to a method in the class and will become an operation in code.
Question:In the 'Retrieve Patient Information' use case, what is the role of the medical receptionist?
Answer:The medical receptionist opens the login form and submits the patient ID to retrieve patient information.
Question:What happens if the medical receptionist is authorized to access patient information?
Answer:The system displays the requested patient information.
Question:What occurs if the medical receptionist is not authorized to access patient information?
Answer:The system displays an error message.
Question:Describe the sequence of actions a customer performs when withdrawing money from an ATM according to the sequence diagram.
Answer:The customer enters their credit card number and withdrawal amount; the system checks the balance; if sufficient funds are available, it charges the account and shows a successful transaction; otherwise, it displays that there are insufficient funds.
Question:What does the system do after a lecturer requests a student transcript?
Answer:The system retrieves seminars presented by the student to calculate seminar marks, retrieves the student's coursework marks, and shows these marks to the lecturer.
Question:What option does a lecturer have after viewing the student transcript marks?
Answer:The lecturer can choose to print the transcript and receive a hard copy.
Question:In the 'Receive Order' use case, what does the purchase officer do first?
Answer:The purchase officer submits the order ID and details of the items received after physically receiving the order.
Question:What happens if the system validates the received order successfully?
Answer:The system updates the inventory quantity, displays a successful transaction message, and may send a confirmation email to the supplier.
Question:What does the system do if the received order is invalid in the 'Receive Order' use case?
Answer:The system displays that it is an invalid order and sends an InvalidOrder email to the supplier.