Use case diagram: use cases and associations

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Use case diagram: use cases and associations

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. How is a use case drawn in a use case diagram?
A As a stick figure outside the system boundary
B As an oval inside the system boundary
2. Which is the better name for a use case in a library system?
A Borrow Book
B Book Borrowing Database
3. What does a use case represent?
A A goal an actor achieves with the system
B A step-by-step list of the code the system runs
4. What joins an actor to a use case?
A An association line
B A dashed arrow labelled with data
5. Which use case name follows the naming convention?
A Fine
B Pay Fine

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1(Borrow Book) oval ACustomer ——— (Place Order)
2Student ——— (Check Timetable) BThe use case is named with a noun only. It should use a verb phrase that states a goal, such as Reset Password.
3A use case should be named with a verb first, so it describes an action the actor wants to do CA use case: a goal the actor achieves with the system, drawn as an oval and named with a verb phrase
4Each use case oval is connected to the actor who achieves that goal by an association line DAn association line joining the Student actor to the Check Timetable use case
5(Password) E(Reset Password)
6Teacher (Enter Marks) FThere is no association line between the actor and the use case. A line must join Teacher to Enter Marks.

Definitions

use case

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Actor shape: stick figure Use case shape: ____
2.
Member ___ (Borrow Book)
3.
Use case name = ____ + noun Example: Borrow Book
4.
Actor: Member Use case: Borrow Book ___________: Member --- Borrow Book
5.
A use case is a ____ an actor achieves Example: Return Book

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Actor: Member
B System: Library System
C Oval: Book Loan
D Member --- Borrow Book
Question 2
A Actor: Customer
B Box: Place Order
C Customer --- Place Order
Question 3
A Actor: Teacher
B Oval: Roll Marking
C Teacher --- Mark Roll
Question 4
A Oval: Student
B Oval: Submit Assignment
C Student --- Submit Assignment
Question 5
A Actor: Patient
B Oval: Book Appointment
C Patient Book Appointment

Answer Key

Use case diagram: use cases and associations
Section A: Quick Questions
Q1
B — As an oval inside the system boundary
Q2
A — Borrow Book
Q3
A — A goal an actor achieves with the system
Q4
A — An association line
Q5
B — Pay Fine
Section B: Match the Pairs
Q1
(Borrow Book) oval → A use case: a goal the actor achieves with the system, drawn as an oval and named with a verb phrase
Q2
Student ——— (Check Timetable) → An association line joining the Student actor to the Check Timetable use case
Q3
A use case should be named with a verb first, so it describes an action the actor wants to do → (Reset Password)
Q4
Each use case oval is connected to the actor who achieves that goal by an association line → Customer ——— (Place Order)
Q5
(Password) → The use case is named with a noun only. It should use a verb phrase that states a goal, such as Reset Password.
Q6
Teacher (Enter Marks) → There is no association line between the actor and the use case. A line must join Teacher to Enter Marks.
Section C: Definitions
Q1
use case — A goal an actor achieves with the system. It is drawn as an oval named with a verb phrase (e.g. Borrow Book) and joined to its actor by an association line.
Section D: Fill in the Blanks
Q1
Actor shape: stick figure Use case shape: oval
Q2
Member --- (Borrow Book)
Q3
Use case name = verb + noun Example: Borrow Book
Q4
Actor: Member Use case: Borrow Book Association: Member --- Borrow Book
Q5
A use case is a goal an actor achieves Example: Return Book
Section E: Spot the Error
Q1
C — A use case must be named with a verb phrase that states a goal. 'Book Loan' is a noun phrase. It should be 'Borrow Book'.
Q2
B — A use case is drawn as an oval, not a rectangle. The line should be 'Oval: Place Order'.
Q3
B — 'Roll Marking' is a noun phrase, so it does not show the goal as an action. Name the use case with a verb first: 'Mark Roll'.
Q4
A — A student is an actor, not a use case. Actors are drawn as stick figures, and only goals go in ovals. The line should be 'Actor: Student'.
Q5
C — An actor must be joined to its use case by an association line. Without the line the actor is not connected to the goal. It should be 'Patient --- Book Appointment'.