GATE CS 2021, set 2 · Question 42 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Let S be the following schedule of operations of three transactions T₁, T₂ and T₃ in a relational database system:
R₂(Y), R₁(X), R₃(Z), R₁(Y), W₁(X), R₂(Z), W₂(Y), R₃(X), W₃(Z)
Consider the statements P and Q below:
P: S is conflict-serializable.
Q: If T₃ commits before T₁ finishes, then S is recoverable.
Which one of the following choices is correct?

  1. (A) Both P and Q are true.
  2. (B) P is true and Q is false.
  3. (C) P is false and Q is true.
  4. (D) Both P and Q are false.
Answer

Answer (B)

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes