GATE CS 2026 Set 2 | Question 46
Databases › File Organization & Indexing · MCQ · 2 marks · Answer: A
- Question 46Databasesmcq2 marksAn 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 tree index can be a sparse index Which one of the following options is correct?
- A.Both S1 and S2 are true✓
- B.Both S1 and S2 are false
- C.S1 is true and S2 is false
- D.S1 is false and S2 is true
Answer: A
Solution
Answer: (A) S1 is true: a hash index computes a bucket from a search-key value, so it must have an entry for every search-key value present — it cannot be sparse. S2 is true: on a file clustered/sorted on the search key, a tree can store one entry per block (a sparse index). Hence both are true. - A.
More GATE PYQ on File Organization & Indexing
All GATE CS Databases PYQ →Attempt GATE CS 2026 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →