Don't forget to hit the ⭐ if you like this repo.
- 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
orsubmission/sec02
folder, create a folder with your GitHub ID. Name the file asmcq1.md
. - Answer
🗂️submission
├─ 🗂️sec01
├── 📄readme.md
├── 📁drshahizan
│ ├── 📄mcq1.md
│ ├── ...
│ └── 📄mcq5.md
├── 📁your github id
├─ 🗂️sec02
├── 📄readme.md
├── 📁drshahizan
│ ├── 📄mcq1.md
│ ├── ...
│ └── 📄mcq5.md
└── 📁your github id
An online bookstore system is a web-based application that allows users to browse and purchase books online. The system provides features such as searching for books, adding them to a shopping cart, and completing the purchase transaction. The system consists of two main actors: User and Admin. Users can search for books based on various criteria, view book details, add books to their cart, manage the cart contents, and proceed to checkout. Admins are responsible for managing the book inventory and user accounts. They can add, update, or remove books from the system's inventory and manage user registration, login, and account deletion.
The use case diagram illustrates the interactions between actors and the system's functionality. It showcases use cases such as "Search Books," "View Book Details," "Add to Cart," "Manage Cart," and "Checkout" for the User actor. The Admin actor has use cases like "Manage Inventory" and "Manage Users."
The activity diagram represents the flow of activities within the system. It showcases the steps involved in processes such as searching for books, adding books to the cart, managing the cart contents, and completing the checkout process.
The sequence diagram depicts the interaction between objects over time. It illustrates the sequence of messages exchanged between objects during processes such as searching for books, adding them to the cart, and completing the purchase transaction.
The online bookstore system enables users to search for books by title, author, or genre. Upon selecting a book, users can view detailed information such as the book's description, price, and availability. They can add books to their shopping cart for purchase and manage the contents of the cart by adding or removing items. When ready, users can proceed to checkout and complete the purchase transaction.
Admins have access to additional functionality. They can manage the book inventory by adding new books, updating existing book details, or removing books from the system. Admins are also responsible for managing user accounts, including user registration, login, and account deletion.
-
What is the purpose of the use case diagram in the online bookstore system?
- a. To show the detailed steps of the checkout process.
- b. To depict the interactions between actors and the system's functionality.
- c. To represent the flow of activities within the system.
- d. To illustrate the sequence of messages exchanged between objects.
-
Which UML diagram is used to represent the behavior of a single use case?
- a. Class diagram.
- b. Sequence diagram.
- c. Activity diagram.
- d. State machine diagram.
-
In the activity diagram, what symbol is used to represent a decision point or conditional statement?
- a. Circle with a cross inside.
- b. Rectangle with rounded corners.
- c. Diamond shape.
- d. Arrow.
-
What does the sequence diagram illustrate in the online bookstore system?
- a. The flow of control between activities.
- b. The interaction between objects over time.
- c. The relationships between classes and their attributes.
- d. The structure of the system components.
-
Which actor is responsible for managing the book inventory in the online bookstore system?
- a. User.
- b. Admin.
- c. Book.
- d. Cart.
-
What is the purpose of the "Search Books" use case in the online bookstore system?
- a. To allow users to add books to their shopping cart.
- b. To enable users to view detailed information about a selected book.
- c. To provide admins with the ability to manage the book inventory.
- d. To allow users to search for books based on various criteria.
-
Which diagram is best suited to depict the flow of activities within a single use case?
- a. Use case diagram.
- b. Class diagram.
- c. Activity diagram.
- d. State machine diagram.
-
Which diagram would be most useful for modeling the relationships between classes in the online bookstore system?
- a. Use case diagram.
- b. Class diagram.
- c. Activity diagram.
- d. State machine diagram.
-
What is the purpose of the "Checkout" use case in the online bookstore system?
- a. To allow users to search for books.
- b. To enable users to view book details.
- c. To add books to the shopping cart.
- d. To complete the purchase transaction.
-
Who is responsible for managing user accounts in the online bookstore system?
- a. User.
- b. Admin.
- c. Book.
- d. Cart.
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.