Skip to content

GATE CS Transactions and Concurrency Control questions

Practise Transactions and Concurrency Control questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2026DatabasesTransactions and Concurrency ControlMCQ · 1 mark
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?
Official PYQ2025DatabasesTransactions and Concurrency ControlMCQ · 1 mark
A schedule of three database transactions T1,T2T_{1}, T_{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 Ti,i=1,2,3T_{i}, i=1,2,3. The transaction T1T_{1} aborts at the end. Which other transaction(s) will be required to be rolled back? …
Official PYQ2025DatabasesTransactions and Concurrency ControlMCQ · 2 marks
Consider the database transactions T1 and T2 , and data items X and Y . Which of the schedule(s) is/are conflict serializable? …
Official PYQ2025DatabasesTransactions and Concurrency ControlMSQ · 1 mark
​​​​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. 1000010000 each from account AA to account BB. Both transactions read the same value, Rs.1100011000, as the initial balance in AA and were allowed to go through. BB was credited Rs.1000010000 …
Official PYQ2024DatabasesTransactions and Concurrency ControlMSQ · 2 marks
​​​​Consider the following read-write schedule S\text{S} 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 …
Official PYQ2024DatabasesTransactions and Concurrency ControlMCQ · 1 mark
​​​​​Once the DBMS\text{DBMS} informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
Official PYQ2024DatabasesTransactions and Concurrency ControlMSQ · 1 mark
​​​​Which of the following statements about the Two Phase Locking (2PL2 \mathrm{PL}) protocol is/are TRUE?
Official PYQ2022DatabasesTransactions and Concurrency ControlMCQ · 2 marks
Let Ri(z)\textit{R}_{i}(z) and Wi(z)\textit{W}_{i}(z) denote read and write operations on a data element zz by a transaction Ti,\textit{T}_{i}, respectively. Consider the schedule S\textit{S} with four transactions. S:  R4(x)R2(x)R3(x)R1(y)W1(y)W2(x)W3(y)R4(y)S: \; R_{4}(x) R_{2}(x) R_{3}(x)R_{1}(y) W_{1}(y) W_{2}(x) W_{3}(y) R_{4}(y) Which one of the following serial schedules is conflict …
Official PYQ2021DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?
Official PYQ2021DatabasesTransactions and Concurrency ControlMCQ · 2 marks
Let ri(z)r_i(z) and wi(z)w_i(z) denote read and write operations respectively on a data item zz by a transaction TiT_i. Consider the following two schedules. S1:r1(x)r1(y)r2(x)r2(y)w2(y)w1(x)S_1: r_1(x)r_1(y)r_2(x)r_2(y)w_2(y)w_1(x) S2:r1(x)r2(x)r2(y)w2(y)r1(y)w1(x)S_2: r_1(x)r_2(x)r_2(y)w_2(y)r_1(y)w_1(x) Which one of the following options is correct?
Official PYQ2021DatabasesTransactions and Concurrency ControlMCQ · 2 marks
​​​​​Let SS be the following schedule of operations of three transactions T1T_1, T2T_2 and T3T_3 in a relational database system: R2(Y),R1(X),R3(Z),R1(Y)W1(X),R2(Z),W2(Y),R3(X),W3(Z)R_2(Y), R_1(X), R_3(Z), R_1(Y)W_1(X), R_2(Z), W_2(Y), R_3(X), W_3(Z) Consider the statements PP and QQ below: PP: SS is conflict-serializable. QQ: If T3T_3 commits before T1T_1 finishes, then SS …
Official PYQ2019DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following two statements about database transaction schedules: Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable. Timestamp-ordering concurrency control protocol with Thomas’ Write Rule can generate view serializable schedules that are not conflict serializable Which of the above statements …
Official PYQ2017DatabasesTransactions and Concurrency ControlMCQ · 1 mark
In a database system, unique timestamps are assigned to each transaction using Lamport's logical clock. Let TS(T1)TS(T_{1}) and TS(T2)TS(T_{2}) be the timestamps of transactions T1T_{1} and T2T_{2} respectively. Besides, T1T_{1} holds a lock on the resource R,R, and T2T_{2} has requested a conflicting lock on the same resource R.R. The following …
Official PYQ2017DatabasesTransactions and Concurrency ControlNAT · 1 mark
Two transactions T1T_1 and T2T_2 are given as T1:r1(X)w1(X)r1(Y)w1(Y)T_1:r_1(X)w_1(X)r_1(Y)w_1(Y) T2:r2(Y)w2(Y)r2(Z)w2(Z)T_2:r_2(Y)w_2(Y)r_2(Z)w_2(Z) where ri(V)r_i(V) denotes a read\textit{read} operation by transaction TiT_i on a variable VV and wi(V)w_i(V) denotes a write\textit{write} operation by transaction TiT_i on a variable VV. The total number of conflict serializable …
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following two phase locking protocol. Suppose a transaction TT accesses (for read or write operations), a certain set of objects {O1,…,Ok}\{O_1,\ldots,O_k \}. This is done in the following manner: Step 1\text{Step 1}. TT acquires exclusive locks to O1,…,OkO_1,\ldots,O_k in increasing order of their addresses. Step 2\text{Step 2}. The required …
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Which one of the following is NOT a part of the ACID properties of database transactions?
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following database schedule with two transactions T1T_{1} and T2T_{2}. S=r2(X);r1(X);r2(Y);w1(X);r1(Y);w2(X);a1;a2S= r_{2}\left(X\right); r_{1}\left(X\right); r_{2} \left(Y\right); w_{1} \left(X\right); r_{1} \left(Y\right); w_{2} \left(X\right); a_{1}; a_{2} Where ri(Z)r_{i} (Z) denotes a read operation by transaction TiT_{i} on a variable ZZ, wi(Z)w_{i}(Z) denotes a write …
Official PYQ2016DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Suppose a database schedule SS involves transactions T1,…,TnT_1,\ldots,T_n . Construct the precedence graph of SS with vertices representing the transactions and edges representing the conflicts. If SS is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Official PYQ2015DatabasesTransactions and Concurrency ControlMCQ · 1 mark
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 …
Official PYQ2015DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following transaction involving two bank accounts xx and yy. read(x); x:=x-50; write (x); read(y); y:=y+50; write(y) The constraint that the sum of the accounts xx and yy should remain constant is that of