Concurrency Control questions — page 1 of 2

Q20

GATE CS 2026 CS-2TransactionsMCQ1 mark−1/3 if wrong
Consider concurrent execution of two transactions T1T1 and T2T2 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?
Show answer without attempting

Answer: A

Q15

GATE CS 2025 CS-1TransactionsMCQ1 mark−1/3 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) \; W_1(Y) \; R_2(X) \; R_2(Y) \; R_3(Y) \; ABORT(T_1)
Show answer without attempting

Answer: C

Q53

GATE CS 2025 CS-2TransactionsMSQ2 marks
Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?

Transaction T1: R1(X), W1(Y), R1(X), W1(X), COMMIT(T1)
Transaction T2: W2(X), W2(Y), COMMIT(T2)
More than one option can be correct.
Show answer without attempting

Answer: B

Q46

GATE CS 2024 CS-1TransactionsMSQ2 marks
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?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q27

GATE CS 2024 CS-2TransactionsMSQ1 mark
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q39

GATE CS 2022 CSTransactionsMCQ2 marks−2/3 if wrong
Let Ri(z)R_i(z) and Wi(z)W_i(z) denote read and write operations on a data element zz by a transaction TiT_i, respectively. Consider the schedule SS 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 equivalent to SS?
Show answer without attempting

Answer: A

Q13

GATE CS 2021 CS-1TransactionsMSQ1 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?
More than one option can be correct.
Show answer without attempting

Answer: A

Q32

GATE CS 2021 CS-1TransactionsMCQ2 marks−2/3 if wrong
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.
S1S_1: r1(x) r1(y) r2(x) r2(y) w2(y) w1(x)r_1(x)\ r_1(y)\ r_2(x)\ r_2(y)\ w_2(y)\ w_1(x)
S2S_2: r1(x) r2(x) r2(y) w2(y) r1(y) w1(x)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?
Show answer without attempting

Answer: B

Q32

GATE CS 2021 CS-2TransactionsMCQ2 marks−2/3 if wrong
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 P and Q below:

P: SS is conflict-serializable.
Q: If T3T_3 commits before T1T_1 finishes, then SS is recoverable.

Which one of the following choices is correct?
Show answer without attempting

Answer: B

Q37

GATE CS 2020 CSTransactionsMCQ2 marks−2/3 if wrong
Consider a schedule of transactions T1T_1 and T2T_2 (shown in the figure).

Here, RX stands for “Read(X)” and WX stands for “Write(X)”. Which one of the following schedules is conflict equivalent to the above schedule?
Question figure
Show answer without attempting

Answer: A

Q11

GATE CS 2019 CSTransactionsMCQ1 mark−1/3 if wrong
Consider the following two statements about database transaction schedules:
I. Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable.
II. Timestamp-ordering concurrency control protocol with Thomas' Write Rule can generate view serializable schedules that are not conflict serializable.

Which of the above statements is/are TRUE?
Show answer without attempting

Answer: C

Q42

GATE CS 2017 CS-1TransactionsMCQ2 marks−2/3 if wrong
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, and T2T_2 has requested a conflicting lock on the same resource R. The following algorithm is used to prevent deadlocks in the database system assuming that a killed transaction is restarted with the same timestamp.

if TS(T2)<TS(T1) thenT1 is killedelse T2 waits.\begin{aligned} & \text{if } TS(T_2) < TS(T_1) \text{ then} \\ & \quad T_1 \text{ is killed} \\ & \text{else } T_2 \text{ waits.} \end{aligned}

Assume any transaction that is not killed terminates eventually. Which of the following is TRUE about the database system that uses the above algorithm to prevent deadlocks?
Show answer without attempting

Answer: A

Q44

GATE CS 2017 CS-2TransactionsNAT2 marks
Two transactions T1T_1 and T2T_2 are given as

<br>T1:r1(X)w1(X)r1(Y)w1(Y)<br>T2:r2(Y)w2(Y)r2(Z)w2(Z)<br>\begin{aligned}<br>T_1 &: r_1(X)w_1(X)r_1(Y)w_1(Y) \\<br>T_2 &: r_2(Y)w_2(Y)r_2(Z)w_2(Z)<br>\end{aligned}

where ri(V)r_i(V) denotes a read operation by transaction TiT_i on a variable VV and wi(V)w_i(V) denotes a write operation by transaction TiT_i on a variable VV. The total number of conflict serializable schedules that can be formed by T1T_1 and T2T_2 is ____________.
Show answer without attempting

Answer: 54.0

Q51

GATE CS 2016 CS-1TransactionsMCQ2 marks−2/3 if wrong
Consider the following two phase locking protocol. Suppose a transaction T accesses (for read or write operations), a certain set of objects {O1,…,Ok}\{O_1, \dots, O_k\}. This is done in the following manner:
Step 1. T acquires exclusive locks to O1,…,OkO_1, \dots, O_k in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.
This protocol will
Show answer without attempting

Answer: A

Q22

GATE CS 2016 CS-2TransactionsMCQ1 mark−1/3 if wrong
Suppose a database schedule SS involves transactions T1,…,TnT_1, \dots, 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?
Show answer without attempting

Answer: A

Q51

GATE CS 2016 CS-2TransactionsMCQ2 marks−2/3 if wrong
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(X); r_1(X); r_2(Y); w_1(X); r_1(Y); w_2(X); 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 operation by TiT_i on a variable ZZ and aia_i denotes an abort by transaction TiT_i.

Which one of the following statements about the above schedule is TRUE?
Show answer without attempting

Answer: C

Q51

GATE CS 2015 CS-3TransactionsMCQ2 marks−2/3 if wrong
Consider the following partial Schedule SS involving two transactions T1T1 and T2T2. Only the read and the write operations have been shown. The read operation on data item PP is denoted by read(P) and the write operation on data item PP is denoted by write(P).
Time instanceT1T2
1read(A)
2write(A)
3read(C)
4write(C)
5read(B)
6write(B)
7read(A)
8commit
9read(B)
Schedule S

Suppose that the transaction T1T1 fails immediately after time instance 9. Which one of the following statements is correct?
Show answer without attempting

Answer: B

Q39

GATE CS 2015 CS-2TransactionsMCQ2 marks−2/3 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?
Show answer without attempting

Answer: A

Q29

GATE CS 2014 CS-2TransactionsMCQ2 marks−2/3 if wrong
Consider the following schedule S of transactions T1, T2, T3, T4:
T1T2T3T4
Reads(X)
Writes(X)
Commit
Writes(X)
Commit
Writes(Y)
Reads(Z)
Commit
Reads(X)
Reads(Y)
Commit
Which one of the following statements is CORRECT?
Show answer without attempting

Answer: C

Q29

GATE CS 2014 CS-3TransactionsMCQ2 marks−2/3 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?
Show answer without attempting

Answer: A

0/200 correct0 marks

Related topics in Transactions