GATE CS 2025 Set 1 | Question 15

Databases › Transaction Management · MCQ · 1 mark · Answer: C

  1. Question 15Databasesmcq1 mark
    A schedule of three database transactions , , and is shown. and denote read and write of data item by transaction , . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back?
    • A.
      Only
    • B.
      Only
    • C.
      Both and
      ✓
    • D.
      Neither nor

    Answer: C

    Solution

    Answer: (C) Both and writes with and later aborts, so every transaction that read the uncommitted value of performs a dirty read and must be rolled back (cascading rollback). - reads after → read dirty data → roll back . - also reads (whose last writer is , since never wrote ) → read dirty data → roll back . Hence both and must be rolled back.

More GATE PYQ on Transaction Management

All GATE CS Databases PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →