GATE CS 2026, set 2 · Question 46 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

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: A hash index must be a dense index
S2: A B⁺ tree index can be a sparse index
Which one of the following options is correct?

  1. (A) Both S1 and S2 are true
  2. (B) Both S1 and S2 are false
  3. (C) S1 is true and S2 is false
  4. (D) S1 is false and S2 is true
Answer

Answer (A)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes