CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
A multilevel index is built over a first level of 40,000 index entries; every index block holds 34 entries (fan-out 34), and levels are added until the top level fits in one block. How many index levels are there in total, and how many block accesses does a lookup take including one data-block read?
- A. 3 levels, 4 accesses
- B. 4 levels, 4 accesses
- C. 4 levels, 5 accesses
- D. 5 levels, 6 accesses
Correct answer: C. 4 levels, 5 accesses
Blocks per level: 1177 → 35 → 2 → 1; the levels shrink by a factor 34 until one block remains, giving 4 levels. A lookup reads one block per level plus the data block: 5.
More DBMS and SQL questions
- 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 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…