Skip to main content

GATE CSE 2026Databases › Transactions, Concurrency Control & IndexingVerified

GATE CSE 2026 PYQ: An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed…

An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed file. Otherwise it is called a sparse index. Consider the following two statements.


S1\text{S1}: A hash index must be a dense index
S2\text{S2}: A B+B^{+} tree index can be a sparse index

Which one of the following options is correct?

  1. A
    Both S1\text{S1} and S2\text{S2} are true
    Correct answer
  2. B
    Both S1\text{S1} and S2\text{S2} are false
  3. C
    S1\text{S1} is true and S2\text{S2} is false
  4. D
    S1\text{S1} is false and S2\text{S2} is true

Answer

(A) Both S1 \text{S1} S1 and S2 \text{S2} S2 are true

Approach

Use the standard dense/sparse index definitions: a dense index has an entry for every search-key value, while a sparse index has entries for only some search-key values. Then evaluate S1 for hash indexes and S2 for B+-tree indexes.

A hash index must be dense because hash lookup cannot use range/sequential access to locate a missing key. A B+-tree index can be sparse when it is a clustered/primary index and stores one entry per data block. Hence S1 and S2 are both true, so option A is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.