Search Header Logo

Hashing Quiz

Authored by Jordan Burgess

Computers

University

Hashing Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the two approaches to data storage/access that have been studied so far?

Contiguous and Non-contiguous

Array and Linked List

Hashing and Binary Search

Sequential and Sorted

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In the 'perfect' hashing example, how is each employee's idNum mapped to the array index?

Using linear probing

Using a hash function

Using double hashing

Directly

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the hash function used in the 'perfect' hashing example?

h(key) = key % 100

h(key) = key

h(key) = key * key

h(key) = key * 2

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the range of idNum in the more realistic hashing example?

0-9999

0-999

0-99999

0-99

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of a hash function in hashing?

To store data sequentially

To access data using linear search

To manipulate the key of an element

To sort the data in the hash table

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the condition resulting when two or more keys produce the same hash location?

Chaining

Collision

Clustering

Probing

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the name of the collision-handling algorithm that resolves collisions by sequentially searching the hash table?

Mid-square Hashing

Double Hashing

Chaining

Linear Probing

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?