Bird
0
0

What is the main responsibility of the Elevator class in an elevator system?

easy🧠 Conceptual Q1 of 15
LLD - Design — Elevator System
What is the main responsibility of the Elevator class in an elevator system?
ATo manage the building's power supply
BTo move between floors and handle requests
CTo store user information for elevator access
DTo represent each floor in the building
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of Elevator class

    The Elevator class controls the movement and processes requests to go to different floors.
  2. Step 2: Compare with other options

    Other options describe unrelated responsibilities like floor representation or power management.
  3. Final Answer:

    To move between floors and handle requests -> Option B
  4. Quick Check:

    Elevator responsibility = move and handle requests [OK]
Quick Trick: Elevator moves and serves requests, floors just represent levels [OK]
Common Mistakes:
MISTAKES
  • Confusing Elevator with Floor class
  • Thinking Elevator stores user data
  • Mixing power management with Elevator role

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes