0
0
LLDsystem_design~20 mins

Use case diagrams in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Use Case Diagram Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the primary actor in a use case diagram

In a use case diagram for an online bookstore, which of the following is the primary actor?

AThe customer who buys books
BThe database storing book information
CThe payment gateway service
DThe server hosting the website
Attempts:
2 left
💡 Hint

Think about who initiates the interaction with the system.

Architecture
intermediate
2:00remaining
Determine the correct use case relationship

Which option correctly describes the include relationship in use case diagrams?

AActors inherit behaviors from other actors
BA use case always calls another use case to reuse its behavior
CTwo use cases are unrelated and independent
DA use case extends another use case optionally
Attempts:
2 left
💡 Hint

Consider which relationship means mandatory reuse of behavior.

scaling
advanced
2:30remaining
Scaling use case diagrams for large systems

When designing use case diagrams for a large banking system, which approach best helps manage complexity?

AOnly model the most important use cases and ignore others
BCreate one large use case diagram with all actors and use cases
CDivide the system into subsystems and create separate use case diagrams for each
DUse sequence diagrams instead of use case diagrams
Attempts:
2 left
💡 Hint

Think about how to keep diagrams clear and understandable.

tradeoff
advanced
2:30remaining
Tradeoffs in actor identification

What is a common tradeoff when deciding how many actors to include in a use case diagram?

AMore actors make the diagram simpler but less detailed
BFewer actors reduce clarity but increase diagram size
CActors do not affect diagram complexity
DToo many actors can clutter the diagram and confuse readers
Attempts:
2 left
💡 Hint

Consider how visual clutter affects understanding.

component
expert
3:00remaining
Analyzing request flow from use case to system components

In a use case diagram for a ride-sharing app, the 'Request Ride' use case involves the Rider actor and triggers several system components. Which sequence best represents the request flow from the actor to components?

ARider → Authentication Service → Ride Matching Service → Payment Service
BRider → Ride Matching Service → Authentication Service → Payment Service
CRider → Payment Service → Ride Matching Service → Authentication Service
DRider → Payment Service → Authentication Service → Ride Matching Service
Attempts:
2 left
💡 Hint

Think about the logical order of verifying identity, matching rides, then processing payment.