CSC 2210: Activity Diagrams Quiz
40 Questions
1 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 the primary purpose of an activity diagram?

  • To outline user interactions with a system.
  • To model the structure of a system.
  • To show the workflow behavior of a system. (correct)
  • To depict data relationships in a system.
  • Which of the following best differentiates an activity diagram from a sequence diagram?

  • A sequence diagram shows concurrency in processes.
  • An activity diagram highlights the flow of control from activity to activity. (correct)
  • An activity diagram focuses on object interactions.
  • A sequence diagram emphasizes process flow.
  • When should activity diagrams be used?

  • To show the workflow and parallel processing of a system. (correct)
  • To explore simple operations.
  • To represent the states of an object.
  • To analyze algorithms in a software application.
  • What do activity diagrams capture in relation to system processes?

    <p>The flow of control from activity to activity.</p> Signup and view all the answers

    Which of the following elements is NOT typically illustrated in an activity diagram?

    <p>Class hierarchies</p> Signup and view all the answers

    What role do guard conditions play in activity diagrams?

    <p>They indicate decision points that control flow.</p> Signup and view all the answers

    In activity diagrams, how is concurrency typically represented?

    <p>Using parallel lines.</p> Signup and view all the answers

    Which of the following is a feature of activity diagrams that sets them apart from traditional flowcharts?

    <p>Representation of concurrent activities.</p> Signup and view all the answers

    What does a guard condition signify in decision making within an activity diagram?

    <p>It determines the direction the logic follows based on its truth value.</p> Signup and view all the answers

    In an activity diagram, what does the diamond icon represent?

    <p>A merge point where alternative paths converge.</p> Signup and view all the answers

    What symbol is used to represent the starting point in an activity diagram?

    <p>Solid dot</p> Signup and view all the answers

    How does the UML represent concurrency in an activity diagram?

    <p>Using a fork bar.</p> Signup and view all the answers

    What does an end point in an activity diagram indicate?

    <p>The completion of the activity flow.</p> Signup and view all the answers

    What defines a merge point in an activity diagram?

    <p>The place where two alternative paths come together.</p> Signup and view all the answers

    What symbol is typically used to show that multiple threads or processes are starting from a single process in UML?

    <p>Fork bar</p> Signup and view all the answers

    What is a true description of the guard condition's function in branching?

    <p>It determines the path taken based on whether a condition is met.</p> Signup and view all the answers

    What happens if the customer enters an incorrect PIN four times in an ATM transaction?

    <p>The card is seized by the machine.</p> Signup and view all the answers

    What action is taken if the customer does not withdraw the money within 5 seconds after it is dispensed?

    <p>The money is taken back by the machine.</p> Signup and view all the answers

    What determines whether the bank dispenses money during an ATM transaction?

    <p>The account balance must be greater than or equal to the withdrawal amount.</p> Signup and view all the answers

    What is the fate of the order if the customer does not pay the bill within one week?

    <p>The customer is marked as a defaulter and the order is closed in unpaid state.</p> Signup and view all the answers

    What occurs concurrently with money being dispatched from the ATM?

    <p>The ATM records the transaction.</p> Signup and view all the answers

    During which phase does the sales department prepare the bill for an order?

    <p>After the products have been shipped.</p> Signup and view all the answers

    What is the initial state of a new order object in the sales department?

    <p>Empty.</p> Signup and view all the answers

    What is the consequence of a successful withdrawal when the customer takes the money?

    <p>A transaction receipt is printed.</p> Signup and view all the answers

    What is checked before displaying available movie timings to the customer?

    <p>The availability of seats in the Booking Database</p> Signup and view all the answers

    What happens if the credit card verification fails three times during the booking process?

    <p>The booking process gets canceled and a warning is sent to the credit card agent</p> Signup and view all the answers

    What does the Session object do after a credit card is successfully verified?

    <p>It sends a receipt to the customer and updates both the booking and movie databases</p> Signup and view all the answers

    What is the first step in the airline ticket booking process?

    <p>Getting the customer’s departure and arrival destinations and departure date</p> Signup and view all the answers

    If the customer does not like any available options after reviewing, what can they do?

    <p>Go back to select a new date or close the application</p> Signup and view all the answers

    How does the system handle a failed credit card verification attempt?

    <p>It requests the credit card information again</p> Signup and view all the answers

    What do activity diagrams primarily model?

    <p>The workflow or business processes</p> Signup and view all the answers

    How is an activity represented within an activity diagram?

    <p>A rounded rectangle containing freeform text</p> Signup and view all the answers

    What is the role of the creditCardAgent in the booking system?

    <p>To validate the credit card details provided by the customer</p> Signup and view all the answers

    What is the purpose of a guard condition in an activity diagram?

    <p>To ensure that transitions can only occur when certain conditions are met</p> Signup and view all the answers

    What does the interface do once the booking is completed?

    <p>It generates a bill and sends it to the customer</p> Signup and view all the answers

    What does each arrow represent in an activity diagram?

    <p>A sequence of execution from one activity to another</p> Signup and view all the answers

    What symbol is used to denote decisions in activity diagrams?

    <p>A diamond</p> Signup and view all the answers

    What typically prompts a transition to occur in an activity diagram?

    <p>The completion of the preceding activity</p> Signup and view all the answers

    Which of the following is NOT a type of diagram mentioned in the content?

    <p>Class diagrams</p> Signup and view all the answers

    What does an activity in an activity diagram represent?

    <p>An operation that changes the state of the system</p> Signup and view all the answers

    Study Notes

    Activity Diagram Overview

    • Activity diagrams model the dynamic aspects of systems, functioning akin to flowcharts but with added support for concurrency and branching.
    • They describe the workflow behavior and process flow of a system, emphasizing control movement from one activity to another.
    • Serve to illustrate complex operations, business rules, use cases, and software processes.

    Purpose and Use Cases

    • Draw the activity flow of a system and describe sequences of activities.
    • Illustrate parallel, branched, and concurrent flows.
    • Useful for complex operations, multiple use cases, and workflows.

    Sequence Diagram vs. Activity Diagram

    • Sequence Diagrams: Detail interactions among objects/classes over time, focusing on message exchange.
    • Activity Diagrams: Model the flow of control between activities and represent operations that change system state.

    Activities and Transitions

    • Activities represent steps in a process where work or actions occur, depicted as rounded rectangles.
    • Transitions indicate the flow from one activity to another, represented by arrows guiding the sequence of execution.

    Guard Conditions

    • Guard conditions restrict transitions, indicated by square brackets near the transition arrow.
    • Must evaluate to true for the transition to be executed, ensuring specific conditions are met before progressing.

    Decisions and Branching

    • Decisions are illustrated by diamond-shaped icons, with arrows representing possible outcomes from a tested condition.
    • Each exit option is marked with a guard condition, establishing the logic of flow based on decision outcomes.

    Merge Points

    • Merge points, also represented by diamonds, illustrate convergence of multiple paths into one.
    • Show how different routes come together, allowing for a unified continuation of activity flow.

    Start and End Notations

    • A solid dot marks the beginning of the activity flow.
    • A bull's-eye symbol represents the endpoint of an activity diagram, with the possibility of multiple terminal points.

    Concurrency

    • UML notation allows representation of concurrent activities using a fork, which signifies the initiation of multiple threads or processes.
    • Each outgoing transition from the fork represents a separate thread created from the original process.

    Example Applications

    • Movie Booking System: Customer selects a movie, checks availability, books tickets, verifies payment, and generates a receipt.
    • Airlines Ticketing System: Customers choose flights, verify credit card information, and manage booking statuses based on payment verification results.
    • ATM Transaction: Customers input PIN, check account balance, withdraw cash, and handle incorrect PIN attempts with follow-up procedures.
    • Order Processing: Regular customer orders are processed through inventory checks, payment confirmations, and handling unpaid orders with warnings.

    Exercises Focus

    • Illustrate the use of activity diagrams through practical scenarios such as booking systems, ATM transactions, and product orders, showcasing different processes and user interactions effectively.

    Studying That Suits You

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

    Quiz Team

    Description

    Test your knowledge on Activity Diagrams, a key concept in Object Oriented Analysis & Design. This quiz covers topics such as activities, transitions, guard conditions, and concurrency. Perfect for students of Dr. Akinul Islam Jony's CSC 2210 class at AIUB.

    More Like This

    OOAD Chapter 5: Activity Diagram
    10 questions
    OOAD Chapter 5: Activity Diagram
    10 questions
    CSC 2210 Object Oriented Analysis & Design
    40 questions
    UML Activity Diagrams Quiz
    51 questions
    Use Quizgecko on...
    Browser
    Browser