UML Activity Diagrams and Notes Quiz
18 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is represented by a note in an activity diagram in UML?

  • Guard condition
  • Model element
  • Concurrent activities
  • Annotation (correct)
  • How are notes attached to the model elements in activity diagrams?

  • No line needed
  • Curved line
  • Solid line
  • Dashed line (correct)
  • What is represented by a pair of square brackets in an activity diagram?

  • Concurrent activities
  • Guard condition (correct)
  • Merge node
  • Decision node
  • What does a merge node do in an activity diagram?

    <p>Allows multiple flows to join together</p> Signup and view all the answers

    How is the flow between activities constrained in UML activity diagrams?

    <p>Guards</p> Signup and view all the answers

    How is concurrency achieved in activity diagrams?

    <p>Synchronization bars</p> Signup and view all the answers

    What is the central process involved in making a hot drink?

    <p>Boiling water in a kettle</p> Signup and view all the answers

    In an activity diagram, how are activities typically represented?

    <p>Rounded boxes</p> Signup and view all the answers

    What do completed activities trigger in an activity diagram?

    <p>Outgoing transitions</p> Signup and view all the answers

    Which symbol represents a decision point in an activity diagram?

    <p>Diamond</p> Signup and view all the answers

    What do start and stop nodes represent in an activity diagram?

    <p>Filled circles</p> Signup and view all the answers

    Which element in an activity diagram denotes a fork?

    <p>Thick horizontal line</p> Signup and view all the answers

    What is the purpose of redrawing the activity diagram in Example 3?

    <p>To allow the choice between coffee with milk and coffee without milk</p> Signup and view all the answers

    In Example 4, what new choice is introduced in the activity diagram for preparing a pot of tea?

    <p>Choice of milk and sugar</p> Signup and view all the answers

    What is expected of a library member in the borrowing process according to the text?

    <p>Return the books that they have on loan after a certain period</p> Signup and view all the answers

    What action does the librarian take if a member fails to bring a borrowed book back on time?

    <p>Imposes a fine</p> Signup and view all the answers

    What does the possession of a book during the loan period signify?

    <p>The book is temporarily owned by the borrowing member</p> Signup and view all the answers

    What happens if a library member waits in line but then decides not to borrow any book?

    <p>The librarian records a return instead of a loan</p> Signup and view all the answers

    Study Notes

    Activity Diagrams

    • An activity diagram is a type of UML diagram that shows the flow of activities and decisions in a system.

    Elements and Symbols

    • Activities are shown as rounded boxes.
    • Transitions are shown as lines with arrows.
    • Start and stop nodes are represented as filled circles.
    • Synchronization bars are denoted by thick horizontal lines and used to show concurrent activities.

    Notes and Annotations

    • A note (with annotation) is shown as a rectangle with the top right-hand corner folded down.
    • A dashed line is used to attach the note to the model element to which it refers.

    Decision and Merge Nodes

    • A diamond shape is used as a decision node, which represents a Boolean test (guard) that determines which path to take.
    • One outgoing transition from a decision node should always be taken, meaning exactly one of the relevant guards must always evaluate to true.
    • A diamond shape is also used as a merge node, which brings together alternative mutually exclusive flows.

    Workflow and Activities

    • Workflow is defined as a sequence of activities that produces a result of observable value.
    • An activity has only one transition into and out of it, which is enforced by decision and merge nodes for alternative outgoing and incoming transitions, and by synchronization bars for concurrent outgoing (fork) and incoming (join) transitions.

    Examples of Activity Diagrams

    • Preparing a cup of coffee, with the ability to check if the cup is clean and wash it if necessary.
    • Preparing a cup of coffee, with the choice of coffee with milk or coffee without milk.
    • Preparing a pot of tea, with the choice of milk and sugar when the tea is poured.
    • The lending process from a library, including borrowing and returning books.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Test your knowledge on UML activity diagrams and notes. Practice redrawing activity diagrams with specific examples like preparing a cup of coffee and checking if the cup is clean.

    More Like This

    UML Class Diagrams Flashcards
    16 questions

    UML Class Diagrams Flashcards

    SnappyPiccoloTrumpet avatar
    SnappyPiccoloTrumpet
    CSC 2210 Object Oriented Analysis & Design
    40 questions
    Use Quizgecko on...
    Browser
    Browser