wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz No. 2.2 Hash Tables

Total questions: 12

Worksheet time: 11mins

Name
Class
Date
1.

In this method of collision resolution technique, all the elements are stored in the hash table itself.

a)

Chaining Method

b)

Open-Addressing Method

2.

It is the simplest approach to resolving the problem of collision in hashing.

(a)  

3.

Which of the following is not a type of open-addressing method?

a)

Linear Probing

b)

Quadratic Probing

c)

Binary Probing

d)

Double Hashing

4.

It is a mathematical formula that when applied to a key, produces an integer used as an index to find a key in the hash table.

(a)  

5.

It is a data structure that supports one of the efficient searching techniques, that is, hashing.

(a)  

6.

In this method, a key 'k' is mapped into one of the 'm' slots by taking the remainder of 'k' divided by 'm'.

a)

Mid-Square Method

b)

Quadratic Probing

c)

Division Method

d)

Folding Method

7.

In this method of collision resolution technique, a chain of elements is maintained that have the same hash address.

(a)  

8.

Which collision resolution technique has this formula?

h'(k) = (h(k) + i) mod m

a)

Linear Probing

b)

Quadratic Probing

c)

Double Hashing

9.

What is the operator that we use to get a range of key values in a hash table?

(a)  

10.

What is the meaning of O(1) time?

(a)  

11.

What have you learned in our Data Structures and Algorithms course?

2 lines
12.

Do you think you deserve a bonus?

a)

b)