CS FundamentalsHardProduct-company MCQ pattern
A B+ tree indexes 1,000,000 keys. Every leaf holds 100 keys and every internal node has 100 children, and all nodes are completely full. How many node (block) accesses are needed to fetch one record, counting the data block?
- A. 5
- B. 3
- C. 4
- D. 6
Correct answer: C. 4
Leaves: 1,000,000/100 = 10,000. Next level: 10,000/100 = 100 nodes, then 1 root. Tree height = 3 levels (root, internal, leaf), plus 1 data block = 4. Taking log₁₀₀(10⁶) = 3 and forgetting the data block gives 3.
More DBMS and SQL questions
- An ER design has entity sets E1 and E2 joined by a one-to-one relationship R. Both E1 and E2 participate TOTALLY in R, and neither has a…
- Assertion (A): In SQL, WHERE dept = NULL returns no rows even when dept contains NULL values. Reason (R): A comparison with NULL using =…
- How many of the following statements are correct? 1. A phantom read occurs when re-running a query with the same predicate returns new…
- Match each concept with its description: (P) Partial dependency (Q) Transitive dependency (R) BCNF violation (S) Multivalued dependency…
- How many of the following statements about indexing are correct? 1. A B+ tree stores data pointers only in its leaves, which are linked…
- A relation is in 2NF, but a non-key attribute depends on another non-key attribute (a transitive dependency on the key). Which normal form…