CS FundamentalsHardProduct company interview · GATE level
A B+ tree internal node is built on a key of 10 bytes. A disk block is 1024 bytes and a block pointer is 8 bytes. What is the maximum order p (number of child pointers) of an internal node?
- A. 58
- B. 56
- C. 128
- D. 57
Correct answer: D. 57
An internal node holds p pointers and p − 1 keys, so 8p + 10(p − 1) ≤ 1024, giving p ≤ 57.44, so the maximum integer order is p = 57.
More DBMS and SQL questions
- A B+ tree internal node is built on a key of 16 bytes. A disk block is 4096 bytes and a block pointer is 10 bytes. What is the maximum…
- A B+ tree internal node is built on a key of 6 bytes. A disk block is 512 bytes and a block pointer is 6 bytes. What is the maximum order…
- A B+ tree internal node is built on a key of 20 bytes. A disk block is 8192 bytes and a block pointer is 12 bytes. What is the maximum…
- R(A, B, C, D, E) has functional dependencies A → B, C → D, BD → E. What are the candidate key(s) of R?
- R(A, B, C, D, E) has functional dependencies A → B, C → D, BD → E, giving candidate key(s) AC. How many superkeys does R have in total?
- R(A, B, C, D) has functional dependencies AB → C, AC → D. What are the candidate key(s) of R?