📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

If a program crashes before COMMIT, what happens to its uncommitted changes?

A. They are lost because the transaction is rolled back during recovery ✅
B. They are committed automatically
C. They stay locked forever
D. They are saved in a backup

Correct Answer: A. They are lost because the transaction is rolled back during recovery

Explanation

  • Uncommitted changes are not durable and are rolled back on recovery.
  • Only committed work survives a crash.