What is the use of a hash function?

(a) to calculate and return the index of corresponding data

(b) to store data

(c) to erase data

(d) to change data

My question is taken from Hash Tables in division Hash Tables of Data Structures & Algorithms I

The question was asked in my homework.