CS FundamentalsHardProduct-company MCQ pattern
Classify the schedule W1(A), W2(A), C1, C2 (C = commit; T2 does not read A).
- A. Recoverable but not cascadeless
- B. Strict
- C. Not recoverable
- D. Cascadeless but not strict
Correct answer: D. Cascadeless but not strict
No transaction reads uncommitted data, so it is cascadeless (and so recoverable). It is not strict, because T2 overwrites A before T1 has committed or aborted; strictness forbids both reading and writing an uncommitted item.
More DBMS and SQL questions
- 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…
- An ER design has entity sets E1 and E2 joined by a one-to-one relationship R. Both E1 and E2 participate TOTALLY in R, and neither has a…