Bird
0
0

Why does elevator design test the robustness of state machines more than simple linear workflows?

hard🧠 Conceptual Q10 of 15
LLD - Design — Elevator System
Why does elevator design test the robustness of state machines more than simple linear workflows?
ABecause elevators operate in a fixed sequence without branching
BBecause elevators only have one state and no transitions
CBecause elevators do not respond to events
DBecause elevators have multiple states with complex transitions and concurrent events
Step-by-Step Solution
Solution:
  1. Step 1: Compare elevator design to linear workflows

    Linear workflows have simple, sequential steps without branching or concurrency.
  2. Step 2: Understand elevator complexity

    Elevators handle multiple states, transitions, and concurrent events like multiple floor requests.
  3. Final Answer:

    Because elevators have multiple states with complex transitions and concurrent events -> Option D
  4. Quick Check:

    Complex states and concurrency [OK]
Quick Trick: Elevators test complex state transitions and concurrency [OK]
Common Mistakes:
MISTAKES
  • Thinking elevators have simple linear flow
  • Ignoring concurrency in events
  • Assuming no state transitions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes