GATE CS 2004 · File Organization & Data Types

MCQ · 1 mark · Problem DBMS-INDX-0059

Given the following input (4322, 1334, 1471, 9679, 1989, 6171, 6173, 4199) and the hash function x mod 10, which of the following statements are true? i) 9679, 1989, 4199 hash to the same value ii) 1471, 6171 has to the same value iii) All elements hash to the same value iv) Each element hashes to a different value
  1. A
    i only
  2. B
    ii only
  3. C
    i and ii only
  4. D
    iii or iv

Solve it on GATE DA practice →More Storage & Indexing problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1004/gate2004-7

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com