CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
T1 has 3 operations, T2 has 2 and T3 has 2. How many concurrent schedules (interleavings that keep each transaction's own order) exist, and how many of them are non-serial?
- A. 210 and 207
- B. 5040 and 5034
- C. 35 and 29
- D. 210 and 204
Correct answer: D. 210 and 204
Interleavings = 7!/(3!·2!·2!) = 210. Exactly 3! = 6 of them are serial, so 204 are non-serial.
More DBMS and SQL questions
- A query must list departments whose average salary exceeds 50000, considering only employees hired after 2020. Which clause placement is…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E) has functional dependencies CE → A, A → CE, BE → A, BC → E, E → BC. What is the highest normal form R satisfies?
- A transaction has executed its final statement, but its commit record is not yet on stable storage. Which state is it in?
- R(A, B, C, D, E, F) has functional dependencies EF → D, B → C, D → BF, A → E. How many superkeys does R have?
- Table Product(pid, cat, price) rows: (1, 'X', 10), (2, 'X', 20), (3, 'Y', 20), (4, NULL, 30), (5, 'Y', NULL), (6, 'Z', 5). What does this…