CS FundamentalsHardProduct-company MCQ pattern

How many of the following statements are correct? 1. Strict 2PL holds all exclusive locks until commit or abort and so avoids cascading rollbacks. 2. Conservative (static) 2PL acquires all locks before the transaction begins and is deadlock-free. 3. Rigorous 2PL releases shared locks early but holds exclusive locks until commit. 4. Every schedule produced by basic 2PL is conflict serializable.

  1. A. Only one
  2. B. Only two
  3. C. Only three
  4. D. All four

Correct answer: C. Only three

1, 2 and 4 are correct. 3 is wrong: rigorous 2PL holds ALL locks, shared and exclusive, until commit; holding only exclusive locks is strict 2PL.

More DBMS and SQL questions

Exams that ask this topic