GateAI
File Organization and Indexing

GATE CSE 2026 Set 2 · Q46

MCQ2 marksMedium

Time

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+B^+ tree index can be a sparse index

Which one of the following options is correct?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) Both S1 and S2 are true

File Organization and Indexing

Let us evaluate both statements:

  1. Statement S1: *A hash index must be a dense index.*

    • In hash indexing, the hash function computes the address of a bucket directly from the search-key value. Because hashing does not maintain any sorted or sequential ordering of search keys, there is no way to locate a record using adjacent keys or sequential scanning if an index entry for a specific search key does not exist. Therefore, a hash index must contain an entry for every search-key value present in the indexed file, making it necessarily a dense index. Thus, S1 is true.

  2. Statement S2: *A B+B^+ tree index can be a sparse index.*

    • A B+B^+ tree is an ordered/tree-based indexing structure. When the data file is ordered sequentially on the search key (as in a primary or clustering index), a B+B^+ tree can be constructed as a sparse index (e.g., having an index entry for only the first search key of each data block). Thus, S2 is true.

Since both statements S1 and S2 are true, option (A) is the correct choice.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This File Organization and Indexing previous year question is Q46 of the GATE CSE 2026 Set 2 paper. Find more GATE CSE PYQs on File Organization and Indexing in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related File Organization and Indexing PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

File Organization and Indexing in GATE CSE

File Organization and Indexing has 17 GATE CSE PYQs across 17 papers from 2011 to 2026. 3 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2026 Set 2.

How GATE tests File Organization and Indexing

More from GATE CSE 2026 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2026 Set 2 · Q46 · MCQ

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?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.