CS FundamentalsHardGATE CS · Product placement
A B+ tree index uses 8192-byte blocks, 24-byte search keys, 10-byte block pointers and 16-byte record (data) pointers. Each leaf also keeps one block pointer to the next leaf. What is the maximum number of keys a LEAF node can hold?
- A. 203
- B. 241
- C. 204
- D. 240
Correct answer: C. 204
A leaf holds q (key, record-pointer) pairs plus one next-leaf pointer: 40·q + 10 ≤ 8192 gives q = ⌊(8192 − 10)/40⌋ = 204. Using the block-pointer size or forgetting the sibling pointer gives the traps.
More DBMS and SQL questions
- R has 1600 tuples in 80 blocks and S has 20000 tuples in 500 blocks. With only enough memory for one block of each relation, how many…
- Classify the schedule R1(A), W2(B), W1(A), R2(B), W1(B), W2(A), R3(A), W3(B), W3(A).
- Classify the schedule W1(B), W1(A), W3(B), R1(B), R2(B), W3(A), W2(B), R2(A), R3(A).
- Consider the schedule W3(C), W2(A), W1(A), R1(C), R2(A), R2(C), W3(A). Which statement is correct?
- A B+ tree index uses 1024-byte blocks, 10-byte search keys, 6-byte block (tree) pointers and 8-byte record pointers. What is the maximum…
- R(A, B, C, D, E) has functional dependencies E → B, B → A, D → B, A → D. Which decomposition of R is lossless-join?