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 11–15 of 38

Q11GATE 2021 (Session 2)2 marksMCQ−0.67 if wrong
Let S be the following schedule of operations of three transactions T1,T2 and T3T_1, T_2 \text{ and }T_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: S is conflict-serializable.
Q: If T3T_3 commits before T1T_1 finishes, then S is recoverable.

Which one of the following choices is correct?

Q12GATE 20202 marksMCQ−0.67 if wrong
Consider a schedule of transactions T1 and T2:
T1 RA RC WD WB Commit T2 RB WB RD WC Commit
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?
(A) T1 RA RC WD WB Commit T2 RB WB RD WC Commit (B) T1 RA RC WD WB Commit T2 RB WB RD WC Commit (C) T1 RA RC WD WB Commit T2 RB WB RD WC Commit (D) T1 RA RC WD WB Commit T2 RB WB RD WC Commit

Q13GATE 20191 markMCQ−0.33 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?

Q14GATE 2017 (Session 1)2 marksMCQ−0.67 if wrong
In a database system, unique time stamps are assigned to each transaction using Lamport's logical clock . Let TS(T1T_{1}) and TS(T2T_{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) then
    T1 is killed
else T2 waits.

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

Q15GATE 2017 (Session 2)2 marksNAT
Two transactions T1  and  T2T_1 \; and \; T_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 operation by transaction TiT_{i} on a variable V and wi(V)w_{i}(V) denotes a write operations by transaction TiT_{i} on a variable V. The total number of conflict serializable schedules that can be formed by T1  and  T2T_1 \; and \; T_2 is _____________.

Keep practising

Topics in Databases

All CS topics ›