0
0
LLDsystem_design~20 mins

Identifying classes from requirements in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Class Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identifying the main class from a simple requirement

You have a requirement: "A library system needs to manage books and members." Which class should be the main focus to represent the core entity?

ABook
BAuthor
CMember
DLibrary
Attempts:
2 left
💡 Hint

Think about what represents the whole system managing books and members.

Architecture
intermediate
2:00remaining
Choosing classes for an online shopping system

Given the requirement: "The system should allow customers to place orders for products." Which set of classes best represents the core entities?

ACustomer, Payment, Delivery
BOrder, Invoice, Shipment
CCustomer, Order, Product
DProduct, Supplier, Inventory
Attempts:
2 left
💡 Hint

Focus on who places orders and what is ordered.

scaling
advanced
2:00remaining
Identifying classes for a scalable ride-sharing app

For a ride-sharing app that must handle millions of users and rides, which class design best supports scalability?

AUser, Driver, Ride, Vehicle, Location, Payment, Rating
BUser, Ride, Vehicle, Location, Payment
CDriver, Vehicle, Route, Payment
DUser, Driver, Ride, Payment
Attempts:
2 left
💡 Hint

Consider all entities needed to support features and scale.

tradeoff
advanced
2:00remaining
Tradeoff in class granularity for a hotel booking system

Which class design shows a tradeoff between simplicity and detailed representation?

ABooking, Room, Customer, Payment, Invoice, CancellationPolicy
BBooking, Customer
CBooking, Room, Customer
DRoom, Customer, Payment
Attempts:
2 left
💡 Hint

More classes mean more detail but more complexity.

estimation
expert
2:00remaining
Estimating number of classes for a social media platform

Estimate the minimum number of classes needed to represent a social media platform with users, posts, comments, likes, and messages.

A9
B5
C7
D3
Attempts:
2 left
💡 Hint

Think about one class per main entity mentioned.