Interaction Models

This quiz covers topics including the two approaches to interaction modeling (use case modeling and sequence diagrams), use case notation (ellipses, actors, tabular descriptions, composite diagrams), sequence diagram notation (objects/actors on a timeline, lifelines, activation boxes, annotated arrows, the alt box, guards), and how use cases and sequence diagrams complement each other at different levels of detail

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen

QUESTION OF
Views #: 1
Questions #: 16
Time: 14 minutes
Pass Score: 80.0%
Style
Mode

Why Model System Interactions?

2 pts
volume_mute

Modeling system interactions is important for which of the following reasons? Select all that apply.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Two Approaches to Interaction Modeling

1 pts

There are two related approaches to interaction modeling. Match each approach to its primary focus.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Approach

Use case modeling
Sequence diagrams

Primary Focus

Modeling interactions between system components; external agents may also be included
Modeling interactions between a system and external agents — human users or other systems
note_alt Add notes
flag Flag

Correct Answer

Explanation

What Is a Use Case?

1 pts
volume_mute

A use case in its simplest form can be taken as:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Use Case Diagram

1 pts
volume_mute

The diagram below shows the use cases involving the Medical Receptionist actor in the Mentcare system.

Medical receptionist Register patient Unregister patient View patient info. Transfer data Contact patient

How many distinct use cases does the Medical Receptionist participate in according to this diagram?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Actors in Use Case Diagrams

1 pts
volume_mute

True or False: In a UML use case diagram, actors can only be human users — other systems and hardware devices cannot be represented as actors.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Use Case Arrows in UML

1 pts
volume_mute

Formally, use case diagrams should use lines without arrowheads, yet arrows are often used informally. What do arrows indicate when used in a use case diagram?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Tabular Use Case Description

1 pts
volume_mute

The table below describes the Transfer data use case from the Mentcare system.

Mentcare system: Transfer data Actors Medical receptionist, Patient records system (PRS) Description A receptionist may transfer data from the Mentcare system to a general patient record database maintained by a health authority. Data Patient's personal information, treatment summary Stimulus User command issued by medical receptionist Response Confirmation that PRS has been updated Comments Receptionist must have appropriate security permissions.

According to this tabular description, what triggers the Transfer data use case?

note_alt Add notes
flag Flag

Correct Answer

Explanation

When to Use Composite Use Case Diagrams

1 pts
volume_mute

True or False: It is always possible and preferable to show all use cases for a system in a single composite use case diagram.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Where Use Cases Are Most Useful

1 pts
volume_mute

Use case models are more useful at which stage?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Sequence Diagrams — Purpose

1 pts
volume_mute

Sequence diagrams in UML are primarily used to model:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Sequence Diagram — Notation Elements

1 pts
volume_mute

The diagram below shows the sequence diagram for the View patient information use case in the Mentcare system.

Medical Receptionist P: PatientInfo D: Mentcare-DB AS: Authorization ViewInfo (PID) report (Info, PID, UID) authorize (Info, UID) authorization alt [authorization OK] Patient info [authorization fail] Error (no access)

What does the rectangle labeled "alt" in the top-left corner of the combined box represent in this sequence diagram?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Sequence Diagram Notation Elements

3 pts

Match each sequence diagram element to its correct meaning.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Element

Dotted vertical line below an object/actor
Thin rectangle on a dotted lifeline
Solid horizontal arrow between lifelines
Dashed horizontal arrow between lifelines
[condition] on an arrow or inside an alt box

Meaning

A guard condition — the interaction only occurs if the condition is true
The lifeline — shows the existence of that object/actor over time; you read the sequence top to bottom
An activation box — the period during which that object instance is involved in the computation
A synchronous call or message sent from one object to another
A return value or response message
note_alt Add notes
flag Flag

Correct Answer

Explanation

Objects Created During a Sequence

1 pts
volume_mute

The sequence diagram for the Transfer data use case shows a :summary object that is created partway through the sequence. What does the creation of an object during a sequence diagram indicate?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Direct Actor-to-Actor Communication

1 pts
volume_mute

The Transfer data sequence diagram includes direct communication between the Medical Receptionist (actor) and the PRS (Patient Records System, another actor). What feature of a sequence diagram does this illustrate?

note_alt Add notes
flag Flag

Correct Answer

Explanation

When to Omit Interactions from Sequence Diagrams

1 pts
volume_mute

True or False: When developing system models early in the development process to support requirements engineering and high-level design, you must include every possible interaction in your sequence diagrams — even those that depend on implementation decisions not yet made.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Use Cases vs. Sequence Diagrams — Level of Detail

1 pts
volume_mute

How do use case models and sequence diagrams relate to each other in terms of the level of detail they provide about interactions?

note_alt Add notes
flag Flag

Correct Answer

Explanation