Which among the following statement(s) is (are) true?
(A) A hash function takes a message of arbitrary length and generates a fixed length code.
(B) A hash function takes a message of fixed length and generates a code of variable length.
(C) A hash function may give same hash value for distinct messages.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. (A) and (C) only
Explanation
A hash maps input of any length to a fixed-length digest (A), and since inputs outnumber outputs, distinct messages can collide (C). B reverses fixed and variable length.
More Data Communication and Computer Networks questions
- Post office protocol (POP) is a message access protocol which is used to extract message for client. In this regard, which of the following…
- Firewall is a device that filters access to the protected network from the outside network. Firewalls can filter the packets on the basis o…
- Match List I with List II. List I: A. Serial Line IP (SLIP), B. Border Gateway Protocol (BGP), C. User Datagram Protocol (UDP), D. Simple N…
- Given below are two statements: Statement I: The laws of nature put two fundamental limits on the data rate of a channel. The H.Nyquist lim…
- Given below are two statements: Statement I: In Ceasar Cipher each letter of Plain text is replaced by another letter for encryption. State…
- Which tag is used to enclose any number of javascript statements in HTML document?