CS FundamentalsHardGATE CS · Product placement
A B-tree (not B+ tree) stores a record pointer with every key in every node. With 2048-byte blocks, 16-byte keys, 8-byte tree pointers and 8-byte record pointers, what is the maximum number of child pointers (the order p) of a node?
- A. 63
- B. 86
- C. 64
- D. 66
Correct answer: C. 64
A B-tree node with p children has p tree pointers and p − 1 (key, record-pointer) pairs: 8·p + 24·(p − 1) ≤ 2048, so p = ⌊2072/32⌋ = 64. Ignoring the record pointers gives the B+ internal order instead.
More DBMS and SQL questions
- Table P(x) rows: (1), (2), (2), (3), (NULL). Table Q(x) rows: (2), (3), (3), (NULL), (4). What does this query return? sql SELECT (SELECT…
- R(A, B) = {(1, 4), (2, 4), (3, 3), (4, 1), (4, 3)} and S(B, C) = {(1, 6), (2, 5), (2, 6), (3, 5), (4, 5)}. How many tuples are in πA(R ⋈…
- 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 B → AC, C → B, AC → B, A → B. How many prime attributes does R have?
- Table Stu(sid, sname) rows: (1, 'Om'), (2, 'Pia'), (3, 'Raj'), (4, 'Sia'). Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2'…
- A B+ tree index uses 4096-byte blocks, 20-byte search keys, 12-byte block (tree) pointers and 14-byte record pointers. What is the maximum…