Search Header Logo

M.Tech Weekend Quiz-1 (Hashing and tree)

Authored by Dr. Pal

Computers

University

Used 1+ times

M.Tech Weekend Quiz-1 (Hashing and tree)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the primary purpose of a hash function in a hash table?

To sort elements

To compute the index for storage or retrieval

To eliminate duplicate elements

To generate unique values for each key

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following collision resolution techniques uses linked lists to handle collisions?

Linear Probing

Double Hashing

Separate Chaining

Quadratic Probing

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the main disadvantage of Linear Probing in Open Addressing?

High memory usage

Difficult to implement

Primary clustering

High computational cost

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a form of open addressing?

Linear Probing

Separate Chaining

Quadratic Probing

Double Hashing

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Suppose you are using Linear Probing with a hash table of size 11. You insert the following keys: 21, 32, 46, 39. If the hash function is ℎ(𝑘)=𝑘%11, at which index will the key 39 be placed?

Index 2

Index 7

Index 3

Index 6

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Open Addressing resolves hash collisions by:

Chaining with a linked list

Finding another empty slot using a probe sequence

Using a second hash function to find a slot

Ignoring collisions

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Rehashing is required when:

The load factor exceeds a threshold

The hash function has too many collisions

You are adding more keys than the table size

All of the above

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?