MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Networks
Hash Functions
Q
When can we detect a collision if the hash values are same for two inputs, that is H(x) = H(y)?
AA. When x < y
BB. When x > y
CC. When x = y
DD. When x != y
Correct Answer:
D. D. When x != y
Explanation:
Hash function’s primary objective is to provide integrity. No two inputs should have the same hash value, which causes the collision. Collisions are undesirable in hash functions.