0
0
LLDsystem_design~5 mins

Identifying classes from requirements in LLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the first step in identifying classes from requirements?
The first step is to carefully read and understand the requirements to find important nouns and noun phrases that represent potential classes.
Click to reveal answer
beginner
Why are nouns in requirements important for identifying classes?
Nouns often represent objects, entities, or concepts in the system, which can be modeled as classes in the design.
Click to reveal answer
intermediate
What role do verbs play when identifying classes from requirements?
Verbs help identify behaviors or methods that classes should have, showing what actions the classes can perform.
Click to reveal answer
intermediate
How can you differentiate between a class and an attribute when analyzing requirements?
If the noun represents something with its own identity and behavior, it is likely a class; if it describes a property of a class, it is an attribute.
Click to reveal answer
advanced
What is a common technique to validate identified classes from requirements?
Use scenarios or use cases to check if the classes and their interactions make sense and cover the required functionality.
Click to reveal answer
Which of the following is most likely a class in a library management system?
ARead
BBorrowed
CQuickly
DBook
When identifying classes, what should you do with nouns that represent simple properties?
AModel them as attributes of classes
BIgnore them completely
CTreat them as separate classes
DConvert them into methods
Which of these is NOT a good indicator of a class in requirements?
APerson
BTransaction
CCalculate
DAccount
What is the best way to confirm if identified classes are correct?
AIgnore requirements and guess
BUse scenarios or use cases to test them
CAdd as many classes as possible
DOnly use nouns without verbs
Which of the following is a behavior that might belong to a class?
AWithdraw money
BName
CAge
DBalance
Explain the process of identifying classes from a set of system requirements.
Think about how nouns and verbs in sentences relate to objects and actions.
You got /5 concepts.
    Describe how you would differentiate between a class and an attribute when analyzing requirements.
    Consider if the noun can stand alone as an object or just describes something else.
    You got /4 concepts.