Skip to content

Latest commit

 

History

History
229 lines (183 loc) · 12.2 KB

File metadata and controls

229 lines (183 loc) · 12.2 KB

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors Visitors

Don't forget to hit the ⭐ if you like this repo.

Instructions

  • Please use the MCQ template.
  • Please answer the following case study question to assess your knowledge in UML. You are required to submit your answer file in the submission folder. Within the submission/sec01 or submission/sec02 folder, create a folder with your GitHub ID. Name the file as mcq3.md.
  • Answer

Folder structure

🗂️submission
├─ 🗂️sec01
├── 📄readme.md
├── 📁drshahizan
│   ├── 📄mcq1.md
│   ├── ...
│   └── 📄mcq5.md
├── 📁your github id
├─ 🗂️sec02
├── 📄readme.md
├── 📁drshahizan
│   ├── 📄mcq1.md
│   ├── ...
│   └── 📄mcq5.md
└── 📁your github id

Case Study: Online Shopping System

Introduction

An Online Shopping System enables users to browse and purchase products from various vendors through a web-based platform. The system provides functionality for users to search for products, add them to a shopping cart, proceed to checkout, and complete the purchase transaction. It also allows vendors to manage their inventory, process orders, and track sales. Let's explore the system requirements and model them using Structural and Behavioral UML diagrams.

Use Case Diagram

The use case diagram showcases the interactions between actors and the system's functionality. It includes use cases such as "Search Products," "Add to Cart," "Proceed to Checkout," "Process Order," and "Manage Inventory" for both users and vendors.

Class Diagram

The class diagram represents the structure and relationships between classes and their attributes in the Online Shopping System. It includes classes such as "User," "Vendor," "Product," "Shopping Cart," "Order," and "Payment," along with their associations and multiplicity.

Activity Diagram

The activity diagram depicts the flow of activities within the system. It showcases the steps involved in processes such as searching for products, adding items to the shopping cart, proceeding to checkout, and processing orders.

Sequence Diagram

The sequence diagram illustrates the interaction between objects over time. It showcases the sequence of messages exchanged between objects during processes such as adding items to the shopping cart, completing the checkout process, and processing orders.

System Description

The Online Shopping System involves two main actors: Users and Vendors. Users are the individuals who browse and purchase products, while Vendors are the sellers who offer products for sale.

The main functionality of the system includes:

  1. Search Products: Users can search for products based on various criteria such as keywords, categories, or price range.
  2. Add to Cart: Users can add selected products to their shopping cart for later purchase.
  3. Proceed to Checkout: Users can review the items in their cart, enter shipping and payment details, and proceed to complete the purchase.
  4. Process Order: Vendors receive orders placed by users, update inventory, and arrange shipment.
  5. Manage Inventory: Vendors can add new products, update existing product details, and track inventory levels.
  6. Track Sales: Vendors can generate reports to analyze sales data and monitor their business performance.

The Online Shopping System aims to provide a seamless and convenient shopping experience for users while offering a platform for vendors to showcase and sell their products effectively.

Multiple Choice Questions

Structural UML Diagrams:

  1. Which UML diagram represents the structure and relationships between classes in the Online Shopping System?

    • a. Use case diagram.
    • b. Class diagram.
    • c. Activity diagram.
    • d. Sequence diagram.
  2. What does the class diagram illustrate in the Online Shopping System?

    • a. The flow of activities within the system.
    • b. The interaction between objects over time.
    • c. The relationships between classes and their attributes.
    • d. The structure of the system components.
  3. Which UML diagram showcases the organization and dependencies of system components?

    • a. Use case diagram.
    • b. Component diagram.
    • c. Composite structure diagram.
    • d. Deployment diagram.
  4. What is the purpose of the object diagram in the Online Shopping System?

    • a. To depict the interactions between actors and the system's functionality.
    • b. To show the detailed steps of the purchase transaction.
    • c. To represent instances of classes and their relationships at a specific time.
    • d. To illustrate the sequence of messages exchanged between objects.
  5. Which diagram would be most suitable for modeling the physical deployment of software components onto hardware nodes?

    • a. Use case diagram.
    • b. Component diagram.
    • c. Composite structure diagram.
    • d. Deployment diagram.

Behavioral UML Diagrams:

  1. What is the purpose of the activity diagram in the Online Shopping System?

    • a. To depict the interactions between users and vendors.
    • b. To show the detailed steps of the search process.
    • c. To represent the flow of activities within the system.
    • d. To illustrate the sequence of messages exchanged between objects.
  2. Which UML diagram represents the interaction between objects over time?

    • a. Use case diagram.
    • b. Component diagram.
    • c. Interaction overview diagram.
    • d. Sequence diagram.
  3. In the sequence diagram, what does the arrow represent?

    • a. Decision point or conditional statement.
    • b. Control flow between activities.
    • c. The interaction between objects.
    • d. A specific point in time.
  4. What is the purpose of the state diagram in the Online Shopping System?

    • a. To depict the interactions between users and vendors.
    • b. To show the detailed steps of the purchase transaction.
    • c. To represent the flow of activities within the system.
    • d. To illustrate the behavior of an object or system over time.
  5. Which UML diagram showcases the timing constraints and behavior of objects in the Online Shopping System?

    • a. Use case diagram.
    • b. Communication diagram.
    • c. Timing diagram.
    • d. State diagram.
  6. Which diagram is most suitable for representing the flow of activities within a use case in the Online Shopping System?

    • a. Use case diagram.
    • b. Class diagram.
    • c. Activity diagram.
    • d. State diagram.
  7. What does the use case diagram illustrate in the Online Shopping System?

    • a. The flow of activities within the system.
    • b. The interaction between objects over time.
    • c. The relationships between classes and their attributes.
    • d. The interactions between actors and the system's functionality.
  8. Which UML diagram is used to represent the structure and relationships between classes in the Online Shopping System?

    • a. Use case diagram.
    • b. Class diagram.
    • c. Activity diagram.
    • d. Sequence diagram.
  9. What is the purpose of the communication diagram in the Online Shopping System?

    • a. To depict the interactions between actors and the system's functionality.
    • b. To show the detailed steps of the purchase transaction.
    • c. To represent instances of classes and their relationships at a specific time.
    • d. To illustrate the sequence of messages exchanged between objects.
  10. Which UML diagram showcases the organization and dependencies of system components in the Online Shopping System?

    • a. Use case diagram.
    • b. Component diagram.
    • c. Composite structure diagram.
    • d. Deployment diagram.
  11. In the class diagram, what does the association represent?

    • a. Decision point or conditional statement.
    • b. Control flow between activities.
    • c. The interaction between objects.
    • d. A relationship between classes.
  12. What is the purpose of the composite structure diagram in the Online Shopping System?

    • a. To depict the interactions between actors and the system's functionality.
    • b. To show the internal structure of a class, including its parts and collaborations.
    • c. To represent instances of classes and their relationships at a specific time.
    • d. To illustrate the behavior of an object or system over time.
  13. Which UML diagram represents the physical deployment of software components onto hardware nodes in the Online Shopping System?

    • a. Use case diagram.
    • b. Component diagram.
    • c. Composite structure diagram.
    • d. Deployment diagram.
  14. What does the object diagram illustrate in the Online Shopping System?

    • a. The flow of activities within the system.
    • b. The interaction between objects over time.
    • c. The relationships between classes and their attributes.
    • d. Instances of classes and their relationships at a specific time.
  15. Which diagram is most suitable for modeling the detailed steps and interactions during the purchase transaction in the Online Shopping System?

    • a. Use case diagram.
    • b. Class diagram.
    • c. Activity diagram.
    • d. Sequence diagram.
  16. What is the purpose of the timing diagram in the Online Shopping System?

    • a. To depict the interactions between actors and the system's functionality.
    • b. To show the internal structure of a class, including its parts and collaborations.
    • c. To represent the timing constraints and behavior of objects.
    • d. To illustrate the sequence of messages exchanged between objects.
  17. Which UML diagram represents the flow of activities within the Online Shopping System?

    • a. Use case diagram.
    • b. Component diagram.
    • c. Activity diagram.
    • d. State diagram.
  18. In the sequence diagram, what does the lifeline represent?

    • a. Decision point or conditional statement.
    • b. Control flow between activities.
    • c. The interaction between objects.
    • d. The lifespan of an object.
  19. What is the purpose of the interaction overview diagram in the Online Shopping System?

    • a. To depict the interactions between actors and the system's functionality.
    • b. To show the internal structure of a class, including its parts and collaborations.
    • c. To represent the flow of activities within the system.
    • d. To illustrate the interactions and control flow between objects.
  20. Which UML diagram showcases the behavior and transitions of an object or system in the Online Shopping System?

    • a. Use case diagram.
    • b. Class diagram.
    • c. Activity diagram.
    • d. State diagram.

Contribution 🛠️

Please create an Issue for any improvements, suggestions or errors in the content.

You can also contact me using Linkedin for any other queries or feedback.

Visitors