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

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
Hashing

Quiz
•
University
20 questions
FUNDAMENTALS OF ALGORITHMS - UNIT II

Quiz
•
University
20 questions
Unit II and IV

Quiz
•
University
23 questions
Data Structures and Algorithms Quiz - BATCH 1

Quiz
•
University
20 questions
Data Structures

Quiz
•
University - Professi...
20 questions
Parallel & Distributed Database

Quiz
•
University
20 questions
Cây AVL Quiz

Quiz
•
University
20 questions
Data Structures and Algorithms Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade