CS FundamentalsHardProduct-company MCQ pattern
A B+ tree is built on a key of 9 bytes. A block is 1024 bytes and a block pointer is 6 bytes. What is the maximum order p (number of child pointers) of an internal node?
- A. 68
- B. 63
- C. 69
- D. 113
Correct answer: A. 68
An internal node holds p pointers and p − 1 keys: 6p + 9(p − 1) ≤ 1024 → 15p ≤ 1033 → p ≤ 68.9, so p = 68. 69 comes from rounding up; 113 uses keys only.
More DBMS and SQL questions
- R(A, B, C, D) has A as its only candidate key. How many superkeys does R have?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Schedule: W1(A), R2(A), C2, C1, where C means commit. Which classification is correct?
- Under basic timestamp ordering, TS(T1) = 10 and TS(T2) = 20. T2 has read item X, so read-TS(X) = 20. T1 now issues write(X). What happens?