CS FundamentalsVery hardGATE CS (PYQ pattern)

Which of the following statements about two-phase locking variants are correct? I. Basic 2PL guarantees conflict-serializable schedules but not freedom from deadlock. II. Strict 2PL (exclusive locks held until commit) guarantees cascadeless schedules. III. Conservative 2PL (all locks acquired before the transaction starts) is deadlock-free. IV. Basic 2PL guarantees recoverable schedules.

  1. A. I, II and III only
  2. B. I and II only
  3. C. II, III and IV only
  4. D. I, III and IV only

Correct answer: A. I, II and III only

IV is false: basic 2PL may release locks before commit, so a transaction can read another's uncommitted write and commit first, giving a non-recoverable schedule.

More DBMS and SQL questions

Exams that ask this topic