Transaction: GATE CS Previous Year Questions

Transaction · Databases

38 questions · asked in 20 of 27 years (2000–2026)

MCQ 32 · MSQ 5 · NAT 11-mark 19 · 2-mark 19

2000Questions per year2026

Questions 21–25 of 38

Q21GATE 2015 (Session 2)2 marksMCQ−0.67 if wrong
Consider a simple checkpointing protocol and the following set of operations in the log.
(start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7);
(checkpoint);
(start, T2); (write, T2, x, 1, 9); (commit, T2); (start, T3), (write, T3, z, 7, 2);
If a crash happens now and the system tries to recover using both undo and redo operations, what are the contents of the undo list and the redo list?

Q22GATE 2015 (Session 3)2 marksMCQ−0.67 if wrong
Consider the following partial Schedule S involving two transactions T1 and T2. Only the read and the write operations have been shown. The read operation on data item P is denoted by read(P) and the write operation on data item P is denoted by write(P).
Time instance Transaction-id T1 T2 1 read(A) 2 write(A) 3 read(C) 4 write(C) 5 read(B) 6 write(B) 7 read(A) 8 commit 9 read(B) Schedule S
Suppose that the transaction T1 fails immediately after time instance 9. Which one of the following statements is correct?

Q23GATE 2014 (Session 1)2 marksMCQ−0.67 if wrong
Consider the following four schedules due to three transactions (indicted by the subscript) using read and write on a data item x, denoted by r(x) and w(x) respectively. Which one of them is conflict serializable?

Q24GATE 2014 (Session 2)2 marksMCQ−0.67 if wrong
Consider the following schedule S of transactions T1, T2, T3, T4:
T1 T2 T3 T4 Writes(X) Commit Reads(X) Writes(Y) Reads(Z) Commit Writes(X) Commit Reads(X) Reads(Y) Commit
Which one of the following statements is CORRECT?

Q25GATE 2014 (Session 3)2 marksMCQ−0.67 if wrong
Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below.
T1 : r1(X); r1(Z); w1(X); w1(Z)
T2 : r2(Y); r2(Z); w2(Z)
T3 : r3(Y); r3(X); w3(Y)

S1: r1(X); r3(Y); r3(X); r2(Y); r2(Z); w3(Y); w2(Z); r1(Z); w1(X); w1(Z)
S2: r1(X); r3(Y); r2(Y); r3(X); r1(Z); r2(Z); w3(Y); w1(X); w2(Z); w1(Z)
Which one of the following statements about the schedules is TRUE?

Keep practising

Topics in Databases

All CS topics ›