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 1–5 of 38

Q1GATE 2026 (Session 2)1 markMCQ−0.33 if wrong
Consider concurrent execution of two transactions T1T 1 and T2T 2 in a DBMS, both of which access a data object AA. For these two transactions to not conflict on AA, which one of the following statements must be true?

Q2GATE 2025 (Session 1)1 markMCQ−0.33 if wrong
A schedule of three database transactions T1T_1, T2T_2, and T3T_3 is shown. Ri(A)R_i(A) and Wi(A)W_i(A) denote read and write of data item AA by transaction TiT_i, i=1,2,3i = 1, 2, 3. The transaction T1T_1 aborts at the end. Which other transaction(s) will be required to be rolled back?

R1(X)W1(Y)R2(X)R2(Y)R3(Y)ABORT(T1)R_1(X) \quad W_1(Y) \quad R_2(X) \quad R_2(Y) \quad R_3(Y) \quad ABORT(T_1)

Q3GATE 2025 (Session 2)1 markMSQ
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account AA attempted simultaneous transfers of Rs. 10000 each from account AA to account BB. Both transactions read the same value, Rs. 11000, as the initial balance in AA and were allowed to go through. BB was credited Rs. 10000 twice. AA was debited only once and ended up with a balance of Rs. 1000.
Which of the following properties is/are certain to have been violated by the system?

One or more options are correct.

Q4GATE 2025 (Session 2)2 marksMSQ
Consider the database transactions T1T1 and T2T2, and data items XX and YY. Which of the schedule(s) is/are conflict serializable?

Transaction T1R1(X)W1(Y)R1(X)W1(X)COMMIT(T1)\begin{array}{|l|} \hline \textbf{Transaction T1} \\ \hline R1(X) \\ \hline W1(Y) \\ \hline R1(X) \\ \hline W1(X) \\ \hline \text{COMMIT(T1)} \\ \hline \end{array}

Transaction T2W2(X)W2(Y)COMMIT(T2)\begin{array}{|l|} \hline \textbf{Transaction T2} \\ \hline W2(X) \\ \hline W2(Y) \\ \hline \text{COMMIT(T2)} \\ \hline \end{array}

One or more options are correct.

Q5GATE 2024 (Session 1)2 marksMSQ
Consider the following read-write schedule SS over three transactions T1,T2T_1, T_2, and T3T_3, where the subscripts in the schedule indicate transaction IDs:

S:r1(z);w1(z);r2(x);r3(y);w3(y);r2(y);w2(x);w2(y);S: r_1(z) ; w_1(z) ; r_2(x) ; r_3(y) ; w_3(y) ; r_2(y) ; w_2(x) ; w_2(y) ;

Which of the following transaction schedules is/are conflict equivalent to SS ?

One or more options are correct.

Keep practising

Topics in Databases

All CS topics ›