DBMS · Question 25 · Medium

A sparse (non-dense) index has an entry for only some of the search-key values. What does it require of the data file?

  1. The records must be sorted on the search key
  2. The file must have no duplicate records
  3. The file must be stored as a hash table
  4. The index must sit on a different disk from the file
Answer and explanation

Answer: A. The records must be sorted on the search key

Explanation: To find a record, you take the largest index entry not greater than the key and scan forward from there. That only works if the file is ordered on the search key, as with a primary (clustering) index.

Previous: Relation R(A, B, C, D) has the functional dependencies AB → CD and B → C, and… · Next: Changing the internal storage of a database, for example adding an index or…

Practise dbms

Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.

More dbms questions

More technical & programming practice

SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge