CS FundamentalsHardGATE CS · DBMS
A multilevel index is built over a first level of 90,000 index entries; every index block holds 45 entries (fan-out 45), 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. 4 levels, 5 accesses
- C. 2 levels, 3 accesses
- D. 3 levels, 4 accesses
Correct answer: D. 3 levels, 4 accesses
Blocks per level: 2000 → 45 → 1; the levels shrink by a factor 45 until one block remains, giving 3 levels. A lookup reads one block per level plus the data block: 4.
More DBMS and SQL questions
- Which statement about the expressive power of query languages is correct?
- R is decomposed into R1 and R2. Which condition guarantees the decomposition is lossless?
- Table T(x) has rows (1), (2), (3) and table U(y) has rows (2), (NULL). What do these two queries return? Q1: SELECT COUNT() FROM T WHERE x…
- Cust(cid, city) has rows (1, 'Pune'), (2, 'Delhi'), (3, NULL), (4, 'Pune'). Ord(oid, cid, amt) has rows (10, 1, 500), (11, 1, NULL), (12…
- Ord(oid, cid, amt) has rows (10, 1, 500), (11, 1, NULL), (12, 2, 300), (13, NULL, 200), (14, 5, 100). What does SELECT COUNT()…
- Player(pid, team, runs) has rows (1, 'A', 50), (2, 'A', 70), (3, 'A', 70), (4, 'B', 40), (5, 'B', NULL), (6, 'B', 90), (7, 'C', NULL). For…