LLD - Design — Hotel Booking SystemWhich class is primarily responsible for storing information about individual rooms in a hotel system?ARoomBHotelCBookingDGuestCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand the role of each classThe Hotel class manages the overall hotel, Booking handles reservations, and Room stores details about each room.Step 2: Identify which class holds room detailsSince Room is designed to represent individual rooms, it stores room number, type, and availability.Final Answer:Room -> Option AQuick Check:Room class = stores room info [OK]Quick Trick: Room class holds room details, not Hotel or Booking [OK]Common Mistakes:MISTAKESConfusing Hotel with Room classThinking Booking stores room detailsAssuming Guest class stores room info
Master "Design — Hotel Booking System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Advanced LLD Concepts - Dependency injection framework - Quiz 14medium Advanced LLD Concepts - Thread safety in design - Quiz 5medium Design — Food Delivery System - Order tracking state machine - Quiz 9hard Design — Food Delivery System - Restaurant, Menu, Order classes - Quiz 10hard Design — Food Delivery System - Order tracking state machine - Quiz 2easy Design — Online Shopping Cart - Order state machine - Quiz 7medium Design — Online Shopping Cart - Notification on state change - Quiz 11easy Design — Splitwise (Expense Sharing) - Split strategies (equal, exact, percentage) - Quiz 1easy Design — Splitwise (Expense Sharing) - Balance calculation algorithm - Quiz 15hard Design — Splitwise (Expense Sharing) - Simplify debts algorithm - Quiz 13medium