CS FundamentalsHardGATE CS · Product placement
A B+ tree index uses 1024-byte blocks, 12-byte search keys, 10-byte block pointers and 6-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. 55
- B. 46
- C. 47
- D. 56
Correct answer: D. 56
A leaf holds q (key, record-pointer) pairs plus one next-leaf pointer: 18·q + 10 ≤ 1024 gives q = ⌊(1024 − 10)/18⌋ = 56. Using the block-pointer size or forgetting the sibling pointer gives the traps.
More DBMS and SQL questions
- Which statement about a UNIQUE constraint versus a PRIMARY KEY in standard SQL is correct?
- Consider the schedule R1(B), W3(B), W3(A), R2(B), W2(A), R1(A), W1(A). Which statement is correct?
- Extendible hashing uses the LOWEST-order bits of a key's binary value, bucket capacity 2, and starts with global depth 0 and one empty…
- Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2', NULL), (2, 'C1', 65), (3, 'C2', 90), (3, 'C3', 75), (5, 'C1', 50). What does…
- R(A, B, C, D, E, F) has functional dependencies BD → E, D → AF, E → AB, BC → D. Which of the following is the complete set of candidate…
- T1: W1(B), R1(B), R1(A) and T2: W2(A), R2(B), R2(A). Of all 20 interleavings that keep each transaction's own order, how many are conflict…