Bird
0
0

In a library system, if a user tries to update a book's title but the system returns an error 'Book not found', which CRUD operation failed?

medium📝 Analysis Q5 of 15
LLD - Design — Library Management System
In a library system, if a user tries to update a book's title but the system returns an error 'Book not found', which CRUD operation failed?
ACreate
BRead
CUpdate
DDelete
Step-by-Step Solution
Solution:
  1. Step 1: Identify the operation attempted

    User tries to change book title, which is an Update operation.
  2. Step 2: Understand the error meaning

    'Book not found' means the system cannot find the record to update.
  3. Final Answer:

    Update -> Option C
  4. Quick Check:

    Update fails if record missing [OK]
Quick Trick: Update needs existing record, else error [OK]
Common Mistakes:
MISTAKES
  • Confusing Read with Update
  • Thinking Create causes this error
  • Assuming Delete is involved

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes