Search Header Logo

B+/Hashing Review

Authored by Maddie Mihevc

Computers

University

Used 16+ times

B+/Hashing Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

If our function is X % 10, where we would put 392?

(a)  

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collision technique: uses a list for each bin to store multiple items?

chaining

linear probing

quadratic probing

double hashing

3.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

If our function is X % 5, where we would put 63?

(a)  

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Using chaining, how many list items would be have to search through if we are searching for 120?

3

1

2

0

Answer explanation

3 (bin 0 has 3 items in the list)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Using Linear Probing, where would we insert 95 in this hash table? (function: %10)

bin 6

bin 7

bin 2

bin 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collison technique: linearly searches for an empty bucket if a bucket is already full when trying to insert an item?

chaining

linear probing

quadratic probing

double hashing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you replace a value in a HashMap?

hashMap.put(Key, Value)

hashMap.put(Value, Key)

hashMap.add(Key, Value)

hashMap.offer(Value, Key

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?