CS FundamentalsModerateProduct placement · DBMS interview

How many of these statements are correct? 1. A table can have at most one clustering index. 2. A primary index on an ordering key field is usually sparse. 3. A secondary index on a non-ordering key field must be dense. 4. A hash index efficiently supports range queries like price BETWEEN 10 AND 20.

  1. A. 2
  2. B. 3
  3. C. 1
  4. D. 4

Correct answer: B. 3

1–3 are true: data can be physically ordered only one way; a primary index needs one entry per block; a secondary index needs one entry per record because records are not ordered on it. Hashing scatters neighbouring keys, so 4 is false.

More DBMS and SQL questions

Exams that ask this topic