CS FundamentalsHardProduct placement · DBMS interview
Why does a B+ tree usually have a smaller height than a B-tree built on the same key with the same block size?
- A. It never needs to split the root
- B. Its leaves are linked, which reduces the number of levels
- C. It stores every key exactly once
- D. Its internal nodes hold no record pointers, so more keys and child pointers fit per node (higher fan-out)
Correct answer: D. Its internal nodes hold no record pointers, so more keys and child pointers fit per node (higher fan-out)
In a B-tree every key in every node carries a record pointer, cutting fan-out. B+ internal nodes store only keys and child pointers. Leaf links help range scans but do not reduce height.
More DBMS and SQL questions
- A multilevel index is built over a first level of 1,000,000 index entries; every index block holds 100 entries (fan-out 100), and levels…
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- R(A, B) = {(1, 4), (3, 4), (4, 1), (4, 3), (4, 4)} and S(B, C) = {(2, 5), (2, 7), (3, 5), (4, 6)}. How many tuples are in R ⟕ S (left…
- Entity sets Doctor, Patient and Drug participate in a single ternary relationship Prescribes with no cardinality constraints. Each entity…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- For the schedule W3(A), W3(C), R2(A), R1(A), W1(B), W4(A), R2(C), W4(B), how many serial schedules of T1–T4 are conflict-equivalent to it?