5 7 mark
5 7 mark
5 7 mark
5 marks:
Requirement validation ensures that the gathered requirements for a system or project are
correct, complete, and meet stakeholder needs before development begins. This process
helps identify any issues or inconsistencies early, reducing costly errors later in the
development cycle. Common validation techniques include:
1. Reviews:
o Description: Involves stakeholders reviewing the documented requirements to check
for accuracy, completeness, and clarity.
o Types: Can be informal (peer reviews) or formal (structured walkthroughs,
inspections).
o Benefits: Provides multiple perspectives and helps identify gaps or
misunderstandings.
2. Prototyping:
o Description: Creating a simplified version (prototype) of the system or part of it to
give stakeholders a tangible understanding of how the system will function.
o Benefits: Helps clarify vague requirements and allows users to provide feedback on
functionality and design early on.
3. Modeling (Use Cases, UML Diagrams):
o Description: Visual models (like use cases, flowcharts, and UML diagrams) are
created to represent the system's functionality and interactions.
o Benefits: These models make it easier to validate the behavior and interactions of
the system, revealing missing or incorrect requirements.
4. Walkthroughs:
o Description: A meeting where stakeholders walk through the requirements step-by-
step with a business analyst or system designer.
o Benefits: Ensures all parties have a common understanding of the requirements and
reveals ambiguities or inconsistencies.
5. Test Case Generation:
o Description: Creating test cases based on the requirements to ensure each one is
testable. If a requirement cannot be tested, it may need to be refined or clarified.
o Benefits: Ensures that the requirements are specific enough to be verified during the
testing phase, reducing ambiguity.
6. Checklists:
o Description: A pre-defined checklist is used to systematically check each
requirement for completeness, consistency, feasibility, and relevance.
o Benefits: Ensures all necessary criteria for a well-formed requirement are met.
7. Formal Methods:
o Description: Using mathematical models and formal logic to verify the correctness of
requirements. These methods are typically applied to safety-critical systems (e.g.,
aviation or medical software).
o Benefits: Provides high assurance that the system’s requirements are logically sound
and free of contradictions.
2) Why modeling is important? List any five advantages of modelling.
7 mark:
2) Draw the use case diagrams for a Restaurant system. The activities of the
Restaurant system are listed below.
Receive the customer food orders, produce the customer ordered foods, serve the
customer with their ordered foods, collect payment from customers, store customer
payment details, order raw materials for food products, pay for raw materials and
labor.
3) How would you negotiate requirements and also prioritize requirements?
4) Draw the activity diagram to capture all the procedural steps to be followed by the
shopkeeper for his daily routines like ensuring goods availability, ordering, billing in
running the business. Use appropriate design notations for representing the elements
present in the system.
5) Draw the class diagram for the scenario of purchasing the books from a book store. List
out all the objects and their communication involved in the given scenario.
6) Draw the class diagram for the scenario of booking the tickets in an online railway
reservation system. List out all the objects and their communication involved in the given
scenario.
7) Discuss all the interactions happened between different objects involved for booking the
tickets by the passenger and also terminate the object communication once it is getting
approval/disapproval. Draw sequence diagram for the given scenario
8) Write short note on state chart diagram .Provide an example.
A State Chart Diagram (or State Machine Diagram) is a type of behavioral diagram
in Unified Modeling Language (UML) that represents the states of an object and the
transitions between those states in response to events. It is particularly useful for
modeling the lifecycle of an object, detailing how it behaves in different states and
what events trigger transitions from one state to another.
Key Components of State Chart Diagrams
1. States: Represent the conditions or situations during the life of an object. Each state
can have:
o Entry Action: Action taken when entering the state.
o Exit Action: Action taken when leaving the state.
o Internal Activities: Activities performed while in that state.
2. Transitions: Arrows that connect states and indicate how an object moves from one
state to another in response to events or conditions.
3. Events: Triggers that cause transitions between states. Events can be user actions,
messages from other objects, or time-based occurrences.
4. Initial State: Denoted by a filled black circle, representing the starting point of the
state machine.
5. Final State: Denoted by a circle surrounding a smaller filled circle, indicating the end
of the object's lifecycle.
Example: State Chart Diagram for a Book Order Process
Let's consider a Book Order process in an online bookstore. The states and
transitions could be represented as follows:
States
Order Placed: The initial state after the customer places an order.
Processing: The order is being processed (payment verification, stock check, etc.).
Shipped: The order has been shipped to the customer.
Delivered: The order has been delivered to the customer.
Cancelled: The order has been cancelled by the customer or the system.
Transitions
Place Order: Transition from Initial State to Order Placed when the order is placed.
Start Processing: Transition from Order Placed to Processing when the order is
being processed.
Ship Order: Transition from Processing to Shipped when the order is shipped.
Deliver Order: Transition from Shipped to Delivered when the order is delivered.
Cancel Order: Transition from any state to Cancelled when the customer cancels the
order.