Skip to main contentSkip to solution

____ is a situation where two elements map to the same slot in the hash table.

Solution

✅ Correct Option: 2

A collision occurs when the hash function gives the same index (slot) to two different keys, so both elements try to occupy the same position in the hash table. It is resolved by methods such as chaining or open addressing (linear probing, quadratic probing, double hashing).


Option 3: overflow means a data structure (such as a stack, or a full hash table) has no space left to store more elements. It is not about two keys sharing one slot.

Option 4: underflow means trying to remove an element from an empty structure.

Option 1: spoofing is a security term for impersonating a user or system, and has nothing to do with hashing.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question