Data Structure Hash Tables Question #5685
MCQ Single Best Answer Easy

QWhat is the role of a hash function in a hash table?

ID: #5685 Hash Tables 199 views
Question Info
#5685Q ID
EasyDifficulty
Hash TablesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A To determine the order in which elements are stored in the table
  • B To map keys to unique indices in the table
  • C To sort the elements in the table
  • D To count the number of elements in the table
Correct Answer: Option B

Explanation

To map keys to unique indices in the table

Share This Question

Challenge a friend or share with your study group.