edited by
12,062 views
28 votes
28 votes

Which of the following statement(s) is TRUE?

  1. A hash function takes a message of arbitrary length and generates a fixed length code.
  2. A hash function takes a message of fixed length and generates a code of variable length.
  3. A hash function may give the same hash value for distinct messages.
    1. I only
    2. II and III only
    3. I and III only
    4. II only
edited by

6 Answers

0 votes
0 votes

Statement 1: Is correct

A hash function takes a message of arbitrary length and generates a fixed length code because it is working on method of (mod )

for example if we take (mod 10) then code will come in 0 ,1,2,3 …..up to 9 always so its give the fixed length 

statement 2: statement 2 is contrapositive of S1 so if s1 IS  true then 2 will be false

statement 3:a hash function may give the same hash value for distinct message

yes it may because its always generate fixed length so it will be possible 

–6 votes
–6 votes
I think answer is B.... Correct me if wrong
edited by
Answer:

Related questions

57 votes
57 votes
11 answers
4
Ishrat Jahan asked Oct 31, 2014
25,889 views
In a binary tree, the number of internal nodes of degree $1$ is $5$, and the number of internal nodes of degree $2$ is $10$. The number of leaf nodes in the binary tree i...