CS FundamentalsHardProduct-company MCQ pattern
Schedule: R1(A), W2(A), W1(A), W3(A). Which statement is correct?
- A. Conflict serializable but not view serializable
- B. Conflict serializable and view serializable
- C. Not conflict serializable but view serializable, equivalent to T1 → T2 → T3
- D. Neither conflict nor view serializable
Correct answer: C. Not conflict serializable but view serializable, equivalent to T1 → T2 → T3
R1(A) before W2(A) gives T1 → T2, and W2(A) before W1(A) gives T2 → T1: a cycle. But in serial T1, T2, T3, T1 reads the initial A and T3 writes the final A, exactly as in the schedule, so it is view serializable. W2 and W3 are blind writes.
More DBMS and SQL questions
- Classify the schedule W1(A), W2(A), C1, C2 (C = commit; T2 does not read A).
- How many of the following statements are correct? 1. Strict 2PL holds all exclusive locks until commit or abort and so avoids cascading…
- Deadlock prevention with timestamps: T1 (timestamp 5) is older than T2 (timestamp 10). T2 holds a lock on X and T1 requests it…
- Immediate-update recovery with a checkpoint. Log (oldest first): <T1 start>, <T1 commit>, <T2 start>, <checkpoint, active = {T2}>, <T3…
- A file of 30,000 records (100 bytes each, unspanned) is sorted on key K and stored in 1,024-byte blocks. A primary (sparse) index on K…
- A B+ tree indexes 1,000,000 keys. Every leaf holds 100 keys and every internal node has 100 children, and all nodes are completely full…