CS FundamentalsHardGATE CS · DBMS
A B-tree (not B+ tree) stores a record pointer with every key in every node. With 1024-byte blocks, 9-byte keys, 6-byte tree pointers and 7-byte record pointers, what is the maximum number of child pointers (the order p) of a node?
- A. 48
- B. 68
- C. 47
- D. 46
Correct answer: C. 47
A B-tree node with p children has p tree pointers and p − 1 (key, record-pointer) pairs: 6·p + 16·(p − 1) ≤ 1024, so p = ⌊1040/22⌋ = 47. Ignoring the record pointers gives the B+ internal order instead.
More DBMS and SQL questions
- Two transactions each read X = 100. T1 sets X = X − 30 and commits; then T2 sets X = X + 50 and commits. The final value is 150. Which…
- Classify the schedule R2(B), W1(A), W2(A), W3(A), R1(B), W1(B), R3(A), R3(B).
- Under basic two-phase locking, a conflict-serializable schedule is equivalent to the serial schedule that orders transactions by their:
- A weak entity set Dependent (partial key dname) is owned by Employee (key eid) through the identifying relationship HasDep. Which table…
- R(A, B, C, D, E, F) has functional dependencies B → C, AF → E, AC → E, CE → A. How many prime attributes does R have?
- R(A, B, C, D, E) has functional dependencies E → AB, A → D, D → BE. Which decomposition of R is lossless-join?