InterviewSolution
| 1. |
Which of the following statement(s) is TRUE?A hash function takes a message of arbitrary length and generates a fixed length code.A hash function takes a message of fixed length and generates a code of variable length.A hash function may give the same hash value for distinct messages.(A) I only(B) II and III only(C) I and III only(D) II only |
|
Answer» Answer: (C) Explanation: Hash function is defined as any function that can be used to map data of arbitrary size of data to a fixed size data.. The values returned by a hash function are called hash values, hash codes, digests, or simply hashes : Statement 1 is correct Acc to Statement 1, no matter what the value of ‘x’ is h(x) results in a fixed mapping location. |
|