Bird
0
0

A library system's update function is not saving changes to book records. Which is the most likely cause?

medium📝 Analysis Q14 of 15
LLD - Design — Library Management System
A library system's update function is not saving changes to book records. Which is the most likely cause?
AThe update method is missing a save or commit step
BThe delete method is called instead of update
CThe create method is overwriting data
DThe read method is not fetching data
Step-by-Step Solution
Solution:
  1. Step 1: Identify update function role

    Update changes existing data and must save or commit changes to persist them.
  2. Step 2: Check common update failure cause

    If changes are not saved or committed, updates won't reflect in the system.
  3. Final Answer:

    The update method is missing a save or commit step -> Option A
  4. Quick Check:

    Missing save causes update failure [OK]
Quick Trick: Update needs save/commit to persist changes [OK]
Common Mistakes:
MISTAKES
  • Confusing update with delete or create
  • Ignoring save/commit step importance
  • Blaming read method for update issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes