CS FundamentalsHardGATE CS (PYQ pattern)
Schedule S: R1(X), W2(X), W2(Y), W1(Y), W3(X), W3(Y), R3(Y). Which statement is correct?
- A. S is conflict-serializable
- B. S is not view-serializable
- C. S is conflict-serializable and the serial order is T1, T2, T3 only
- D. S is view-serializable but not conflict-serializable
Correct answer: D. S is view-serializable but not conflict-serializable
The precedence graph has a cycle (so not conflict-serializable), but the blind writes make some serial order produce the same reads-from relation and final writes, so it is view-serializable.
More DBMS and SQL questions
- 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…
- An extendible hash index uses the LOW-order bits of the hash value, with bucket capacity 2 and an initial directory of global depth 1 (two…