CS FundamentalsHardGATE CS · DBMS
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 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, 5 accesses
- C. 2 levels, 3 accesses
- D. 3 levels, 3 accesses
Correct answer: A. 3 levels, 4 accesses
Blocks per level: 10000 → 100 → 1; the levels shrink by a factor 100 until one block remains, giving 3 levels. A lookup reads one block per level plus the data block: 4.
More DBMS and SQL questions
- 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…
- For the schedule W3(A), W3(C), R2(A), R1(A), W1(B), W4(A), R2(C), W4(B), how many serial schedules of T1–T4 are conflict-equivalent to it?
- R(A, B, C, D, E, F) has functional dependencies EF → D, A → C, BE → F, F → A, DF → A. What is the highest normal form R satisfies?