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 16–20 of 38

Q16GATE 2016 (Session 1)1 markMCQ−0.33 if wrong
Which one of the following is NOT a part of the ACID properties of database transactions?

Q17GATE 2016 (Session 1)2 marksMCQ−0.67 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}. This is done in the following manner:
Step 1. T acquires exclusive locks to O1,...,Ok in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.
This protocol will

Q18GATE 2016 (Session 2)1 markMCQ−0.33 if wrong
Suppose a database schedule S involves transactions T1,...,Tn. Construct the precedence graph of S with vertices representing the transactions and edges representing the conflicts. If S is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?

Q19GATE 2016 (Session 2)2 marksMCQ−0.67 if wrong
Consider the following databases chedule with two transactions, T1 and T2.
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 avariable Z, wi(Z)w_{i}(Z) denotes a write operation by TiT_{i} on avariable Z and aia_{i} denotes an abort by transaction TiT_{i}.
Which one of the following statements about the above schedule is TRUE?

Q20GATE 2015 (Session 2)1 markMCQ−0.33 if wrong
Consider the following transaction involving two bank accounts x and y.

read(x); x:=x-50; write(x); read(y); y:=y+50; write(y)

The constraint that the sum of the accounts x and y should remain constant is that of

Keep practising

Topics in Databases

All CS topics ›