CS FundamentalsHardGATE CS · PSU (ISRO/BARC)
A multilevel index is built over a first level of 250,000 index entries; every index block holds 68 entries (fan-out 68), 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, 3 accesses
- B. 3 levels, 4 accesses
- C. 4 levels, 5 accesses
- D. 2 levels, 3 accesses
Correct answer: B. 3 levels, 4 accesses
Blocks per level: 3677 → 55 → 1; the levels shrink by a factor 68 until one block remains, giving 3 levels. A lookup reads one block per level plus the data block: 4.
More DBMS and SQL questions
- TS(T1) = 10, TS(T2) = 25, TS(T3) = 20; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which…
- Classify the schedule R3(B), R3(A), W3(A), W1(A), R2(B), W1(B), W2(A), R1(B).
- Table Stu(sid, sname) rows: (1, 'Om'), (2, 'Pia'), (3, 'Raj'), (4, 'Sia'). Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2'…
- 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 COUNT()…
- R(A, B, C, D, E) has the set of functional dependencies Σ = {E → BD, AE → C, C → AD}. Which of the following FDs is NOT in Σ⁺ (not implied…
- In a B+ tree every internal node can have at most 50 children and every leaf can hold at most 40 keys. With exactly 3 levels (root at…