CSC 2210 Object Oriented Analysis & Design
40 Questions
0 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

Which shape is used to represent an activity in an activity diagram?

  • Rounded rectangle (correct)
  • Square
  • Diamond
  • Circle

What do activity diagrams typically model?

  • The interactions among objects/classes over time
  • Workflow or business processes (correct)
  • The sequences of user interactions
  • The static structure of a system

What connects activities in an activity diagram?

  • Events
  • Circles
  • Transitions (correct)
  • States

How is a decision represented in an activity diagram?

<p>With a diamond (B)</p> Signup and view all the answers

What is a key characteristic of transitions in activity diagrams?

<p>They link activities based on completion of the prior activity (B)</p> Signup and view all the answers

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

<p>To restrict the use of a transition (D)</p> Signup and view all the answers

Which of the following statements about activity diagrams is FALSE?

<p>They show a static approach to system design (C)</p> Signup and view all the answers

In what scenario would you use an activity diagram?

<p>To visualize a business process workflow (A)</p> Signup and view all the answers

Which element is NOT typically represented in an activity diagram?

<p>Database connections (A)</p> Signup and view all the answers

What is a primary purpose of an activity diagram?

<p>To model the dynamic aspects of a system. (A)</p> Signup and view all the answers

What distinguishes activity diagrams from interaction diagrams?

<p>Activity diagrams emphasize flow from step to step. (C)</p> Signup and view all the answers

When should you use an activity diagram?

<p>To explore the logic of a business process. (A)</p> Signup and view all the answers

What does concurrency in an activity diagram represent?

<p>Simultaneous execution of activities. (C)</p> Signup and view all the answers

Which of the following best describes the term 'Guard Condition' in activity diagrams?

<p>It represents conditional checks that affect the flow. (A)</p> Signup and view all the answers

Which of the following is a key characteristic of activity diagrams?

<p>They use swimlanes to represent different roles. (B)</p> Signup and view all the answers

What is the role of merge points in an activity diagram?

<p>To combine multiple flows into a single flow. (A)</p> Signup and view all the answers

What does a synchronization bar indicate in a concurrent processing context?

<p>Multiple threads merging to continue as one. (B)</p> Signup and view all the answers

What is the primary purpose of using swimlanes in an activity diagram?

<p>To group activities performed by the same actor. (D)</p> Signup and view all the answers

How are activities categorized in an activity diagram with swimlanes?

<p>Each activity belongs to exactly one swimlane. (C)</p> Signup and view all the answers

Which of the following statements is true regarding transitions in swimlanes?

<p>Transitions may cross lanes. (B)</p> Signup and view all the answers

In the context of concurrent processing, what happens after several threads synchronize using the synchronization bar?

<p>The process continues as a single thread. (B)</p> Signup and view all the answers

What property must each swimlane possess in an activity diagram?

<p>It must have a unique name within its diagram. (D)</p> Signup and view all the answers

In an online movie ticket booking system, what object does the server create while the customer waits?

<p>A Session object. (D)</p> Signup and view all the answers

What happens after a customer requests the current movies in the online ticket booking system?

<p>The server requests the movie database for the list of movies. (A)</p> Signup and view all the answers

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

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

Which of the following actions is performed after a customer inputs the correct PIN during an ATM transaction?

<p>The customer is asked to enter the amount to withdraw. (B)</p> Signup and view all the answers

What condition must be met for the ATM to dispense cash?

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

What happens if the cash dispensed from the ATM is not taken within 5 seconds?

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

What state does the order become if the customer fails to pay the bill within a week?

<p>Unpaid state (A)</p> Signup and view all the answers

Which department processes the order in a regular customer's transaction?

<p>Sales Department (C)</p> Signup and view all the answers

What occurs first when a regular customer requests a product?

<p>A new order object is created. (D)</p> Signup and view all the answers

What happens concurrently when an ATM transaction is completed successfully?

<p>The log is updated and the receipt is printed simultaneously. (C)</p> Signup and view all the answers

What occurs after the customer selects a movie and requests the available timings?

<p>The session object checks the Booking Database for seat availability. (B)</p> Signup and view all the answers

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

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

Which information does the system send to the carrier after successful credit card verification in the airline booking process?

<p>All the booking information and customer data. (A)</p> Signup and view all the answers

What does the Session object do after a successful credit card verification when booking a movie?

<p>It sends a receipt and updates both the booking and movie databases. (D)</p> Signup and view all the answers

What can customers do if they do not like any of the options displayed for airline carriers?

<p>They can close the application or select a new date of departure. (D)</p> Signup and view all the answers

What is checked against the Booking Database for a movie's available times?

<p>The seat availability for the selected timings. (B)</p> Signup and view all the answers

What is likely to happen if a customer enters their credit card details incorrectly during the movie booking process?

<p>An error message is sent and the customer is prompted for correct details. (D)</p> Signup and view all the answers

What is the first action taken by the system when a customer requests to book an airline ticket?

<p>Retrieve flight schedules and carrier names from the flight database. (B)</p> Signup and view all the answers

Study Notes

Activity Diagram Overview

  • Activity diagrams model the dynamic aspects of systems, functioning as flowcharts that represent workflows.
  • Emphasize control flow from one activity to another, unlike interaction diagrams which focus on object interactions.
  • Capture the process flow and describe the workflow behavior of a system.

Purpose of Activity Diagrams

  • Illustrate the activity flow, detailing sequences and parallel processes.
  • Useful for exploring logic in complex operations, business rules, use cases, or software processes.

Comparing Sequence and Activity Diagrams

  • Sequence diagrams focus on object interactions over time via message exchanges, detailing specific use case flows.
  • Activity diagrams illustrate overall system dynamics and workflows, utilizing activities that represent operations changing system states.

Activities and Transitions

  • Activities denote steps in a process where actions occur, represented as rounded rectangles with text.
  • Transitions are arrows connecting activities, indicating flow from one action to the next, activated upon completion of an activity.

Guard Conditions

  • Guard conditions restrict transitions, requiring certain conditions to be met before moving to the next activity.
  • Conditions are displayed near transition arrows, ensuring they evaluate to true for progression.

Decisions and Branching

  • Decision points in activity diagrams are depicted with diamond shapes, with arrows leading out representing possible outcomes of a condition.

Concurrency

  • Concurrent processing is shown through synchronization bars, indicating where multiple processes merge into a single flow after completion.

Swimlane Diagrams

  • Swimlanes group similar activities performed by the same actor or organization, creating clear separations in activity responsibilities.
  • Each swimlane has a unique name, and all activities belong to specific lanes; transitions may cross lanes.

Example Scenarios

  • Online Movie Ticket Booking: Encompasses request handling, session management, and payment verification, illustrating user interaction and system processes.
  • Airlines Ticket Booking: Highlights customer choices, data verification, and booking confirmation with handling of credit validation errors.
  • ATM Withdrawal: Details transaction initiation, PIN verification, money dispensing, and timeout behaviors, showcasing security and operational flows.
  • Product Ordering Process: Describes order creation, inventory management, billing, and defaulter handling, emphasizing sales operations and customer interactions.

Exercises

  • Practice designing activity diagrams based on various real-world scenarios to reinforce understanding of workflow modeling and control flows.

Studying That Suits You

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

Quiz Team

Description

This quiz focuses on key concepts from the CSC 2210 course regarding Activity Diagrams, including their structure and components like activities, transitions, and guard conditions. It also covers comparisons with Sequence Diagrams and explores advanced topics such as concurrency and swimlane diagrams. Perfect for students looking to solidify their understanding of UML diagrams.

More Like This

Use Quizgecko on...
Browser
Browser