Search Header Logo

Hash Tables Recap

Authored by Benjamin Simpson-Court

Computers

11th Grade

Used 1+ times

Hash Tables Recap
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A hash table is

an abstract data structure

an array

an integer

made of pine

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of hashing in computer science?

To transform a string of characters into a shorter length value

To illustrate the concept of data structures

To distribute keys in an array using a hash function

To store and retrieve keys in a rapid manner

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Address <----- key MOD(numberOfSlots)

IF KEY = 5432 and numberOfSlots = 1000

Address = ?

5

432

543

5432

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Address <----- key MOD(numberOfSlots)

IF KEY = 5432 and numberOfSlots = 100

Address = ?

5

4

32

5432

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

when an algorithm generates the same address for different primary keys it is known as

Knock

Bang

Collisions

DoubleHash

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a hashing function used for?

To calculate the position of an item in a hash table

To determine the size of a hash table

To compare items in a data set

To implement a dictionary data structure

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a collision in a hash table?

When two data items have the same hash value

When a hash table is too small to store all the data items

When a hashing function takes too long to calculate

When a hash table is empty

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?