LLD - Design — Elevator SystemIf an elevator is in MovingDown state and receives a 'Stop' event, which state should it transition to?ADoorOpenBMovingUpCIdleDMovingDownCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify current state and eventElevator is MovingDown; event is 'Stop'.Step 2: Understand typical elevator behaviorOn 'Stop', elevator should stop moving and become Idle.Final Answer:Idle -> Option CQuick Check:MovingDown + Stop = Idle [OK]Quick Trick: Stop event leads to Idle state [OK]Common Mistakes:MISTAKESChoosing DoorOpen instead of IdleRemaining in MovingDown stateSwitching to MovingUp incorrectly
Master "Design — Elevator System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Behavioral Design Patterns — Part 1 - State pattern - Quiz 14medium Behavioral Design Patterns — Part 1 - Observer pattern - Quiz 6medium Behavioral Design Patterns — Part 1 - Command pattern - Quiz 15hard Design — Elevator System - State management (idle, moving up, moving down) - Quiz 1easy Design — Library Management System - Why library management tests CRUD design - Quiz 1easy Design — Library Management System - Why library management tests CRUD design - Quiz 5medium Design — Library Management System - Notification system - Quiz 12easy Design — Parking Lot System - Why parking lot is a classic LLD problem - Quiz 8hard Design — Tic-Tac-Toe Game - Extensibility (NxN board, multiple players) - Quiz 5medium Design — Tic-Tac-Toe Game - Player turn management - Quiz 1easy