CS FundamentalsHardProduct-company MCQ pattern

How many of the following statements about indexing are correct? 1. A B+ tree stores data pointers only in its leaves, which are linked for range scans. 2. A B-tree may store data pointers in internal nodes too, so a search can end above the leaf level. 3. A hash index supports range queries such as salary BETWEEN 40000 AND 60000 efficiently. 4. A table can have several clustered indexes as long as they are on different columns.

  1. A. Only one
  2. B. Only two
  3. C. Only three
  4. D. All four

Correct answer: B. Only two

Only 1 and 2 are correct. 3 is false: hashing scatters neighbouring keys, so it only helps equality lookups; range queries need an ordered structure like a B+ tree. 4 is false: rows can be physically ordered only one way, so there is at most one clustered index.

More DBMS and SQL questions

Exams that ask this topic