# MCQ | Cryptography Hash Functions (Level: Easy)

Here, we have a **set of multiple-choice questions and answers (quiz) on hash functions in Cryptography** (basic concepts of Cryptography Hash Functions).

Submitted by Monika Sharma, on February 10, 2020

**1) Which of the following is /are offered by the Hash functions?**

- Authentication
- Non repudiation
- Data Integrity
- All of the above

**Answer:** d. All of the above

**Explanation:**

The Hash functions offer all the mentioned properties in a data compression: i.e. authentication, Non repudiation and Data Integrity.

**2) Which of the following is not a property of Hash Function?**

- Pre-Image Resistance
- Compression
- Fixed Length Output
- None of the above

**Answer:** d. None of the above

**Explanation:**

All the first three options are the properties of the Hash function. None of the mentioned characteristic fall apart form them. Therefore, the correct answer is none of the above.

**3) Which of the following security services cannot be achieved using the Hash functions?ORWhich of the following is not possible through hash value? **

- Password Check
- Data Integrity check
- Digital Signatures
- Data retrieval in its original form

**Answer:** d. Data retrieval in its original form

**Explanation:**

As the hash functions are irreversible and has pre-image resistance property, therefore it is almost impossible to obtain the original data form its hash value. Therefore, it is not possible to retrieve data in its original form from its hash value.

**4) Which of the following options is not correct according to the definition of the Hash Function?**

- Hash Functions are mathematical functions
- They compress the input values
- The hash functions work on arbitrary length input but produces fixed length output.
- None of the above

**Answer:** d. None of the above

**Explanation:**

All the first three options obey to the definition of the Hash function. None of the mentioned options fall apart form it. Therefore, the correct answer is none of the above.

**5) "The Hash Function takes an input of arbitrary length and converts it into a fixed length output."Which of the following names can we use for denoting the output of the hash function?**

- Hash value
- Hash Code
- Message Digest
- All of the above

**Answer:** d. All of the above

**Explanation:**

All the mentioned names can be used to denote the output of a hash function. Therefore, the correct answer is d. All of the above.

TOP Interview Coding Problems/Challenges

- Run-length encoding (find/print frequency of letters in a string)
- Sort an array of 0's, 1's and 2's in linear time complexity
- Checking Anagrams (check whether two string is anagrams or not)
- Relative sorting algorithm
- Finding subarray with given sum
- Find the level in a binary tree with given sum K
- Check whether a Binary Tree is BST (Binary Search Tree) or not
- 1[0]1 Pattern Count
- Capitalize first and last letter of each word in a line
- Print vertical sum of a binary tree
- Print Boundary Sum of a Binary Tree
- Reverse a single linked list
- Greedy Strategy to solve major algorithm problems
- Job sequencing problem
- Root to leaf Path Sum
- Exit Point in a Matrix
- Find length of loop in a linked list
- Toppers of Class
- Print All Nodes that don't have Sibling
- Transform to Sum Tree
- Shortest Source to Destination Path

Comments and Discussions

**Ad:**
Are you a blogger? Join our Blogging forum.