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

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

University

22 Qs

quiz-placeholder

Similar activities

DSQUIZ 2020-21

DSQUIZ 2020-21

University

18 Qs

Data Structures 1

Data Structures 1

University

25 Qs

Exploring Hashing in Data Structures

Exploring Hashing in Data Structures

University

18 Qs

Chapter 14 - File System Implementation

Chapter 14 - File System Implementation

University

20 Qs

Revisão POTA

Revisão POTA

University

17 Qs

blockchain

blockchain

University

19 Qs

SMARTICUS

SMARTICUS

University

20 Qs

Hashing and Collision

Hashing and Collision

University

21 Qs

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

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

Assessment

Quiz

Computers

University

Hard

Created by

Dr. Pal

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?