CS FundamentalsHardGATE CS (PYQ pattern)
Consider the schedule R2(X), W1(X), W2(X), W2(Y), C2, R1(Y), C1, W3(X), R3(X), C3 (Ci is the commit of Ti). Which is the strongest property it satisfies?
- A. Strict
- B. Recoverable, but not cascadeless
- C. Avoids cascading aborts, but is not strict
- D. Not recoverable
Correct answer: C. Avoids cascading aborts, but is not strict
Check each read: no transaction reads an uncommitted write (so ACA holds and the schedule is recoverable), but some item is overwritten before the earlier writer commits, so it is not strict.
More DBMS and SQL questions
- Schedule S: R1(X), W2(X), W2(Y), W1(Y), W3(X), W3(Y), R3(Y). Which statement is correct?
- Basic timestamp ordering with TS(T1) < TS(T2) < TS(T3). A transaction aborts when it violates the rules, and once aborted its later…
- A system uses immediate database modification with a log. Log (oldest first): <T1 start>, <T1,A,10,20>, <T2 start>, <T2,B,5,6>, <T1…
- A 10,000-page file is sorted by external merge sort with 21 buffer pages: later passes merge 20 runs at a time, and every pass reads and…
- Block nested-loop join of R (800 pages) and S (300 pages) with 52 buffer pages (1 for the inner input, 1 for output, 50 for the outer…
- R(A, B) has 10,000 tuples with V(R, B) = 200; S(B, C) has 5,000 tuples with V(S, B) = 500 and V(S, C) = 100; T(C, D) has 2,000 tuples with…