0
0
LLDsystem_design~20 mins

UML class diagrams basics in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
UML Class Diagram Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the correct UML class diagram element

Which UML class diagram element represents a blueprint for objects, including attributes and methods?

AClass
BObject
CPackage
DInterface
Attempts:
2 left
💡 Hint

Think about what defines the structure and behavior of objects in UML.

Architecture
intermediate
2:00remaining
Determine the correct relationship type in UML class diagrams

In a UML class diagram, which relationship type shows that one class owns or contains another class as a part?

ADependency
BAggregation
CInheritance
DAssociation
Attempts:
2 left
💡 Hint

Consider the difference between whole-part relationships and simple links.

scaling
advanced
2:00remaining
Estimate the number of classes needed for a library management system UML diagram

You are designing a UML class diagram for a library system with books, members, loans, and staff. Which is the most reasonable number of classes to represent these entities and their relationships?

A4 classes: Book, Member, Loan, Staff
B20 classes including all possible details and external systems
C2 classes: Book and Member
D10 classes including Book, Member, Loan, Staff, Catalog, Reservation, Fine, Librarian, Publisher, Author
Attempts:
2 left
💡 Hint

Think about capturing main entities and their interactions without overcomplicating.

tradeoff
advanced
2:00remaining
Choose the best UML relationship for representing a strict inheritance hierarchy

Which UML relationship should you use to show that one class is a specialized version of another, inheriting its attributes and methods?

AAssociation
BAggregation
CInheritance (Generalization)
DDependency
Attempts:
2 left
💡 Hint

Think about the 'is-a' relationship in object-oriented design.

component
expert
3:00remaining
Trace the request flow in a UML class diagram for a user login process

Given a UML class diagram with classes: UserInterface, AuthController, UserService, and Database, which sequence correctly represents the flow of a login request?

A1,2,3,4,5,6
B1,3,2,4,5,6
C2,1,3,4,5,6
D1,2,4,3,5,6
Attempts:
2 left
💡 Hint

Follow the logical order of method calls from UI to database and back.