Data Structure And Algorithm II

Quiz
•
Computers
•
University
•
Hard
RAHUL SONAWANE
Used 19+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a hash table?
a) A structure that maps values to keys
b) A structure that maps keys to values
c) A structure used for storage
d) A structure used to implement stack and queue
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If several elements are competing for the same bucket in the hash table, what is it called?
a) Diffusion
b) Replication
c) Collision
d) Duplication
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a technique to avoid a collision?
a) Make the hash function appear random
b) Use the chaining method
c) Use uniform hashing
d) Increasing hash table size
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A technique for direct search is
a) Binary Search
b) Linear Search
c) Tree Search
d) Hashing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The goal of hashing is to produce a search that takes
a) O(1) time
b) O(n2 )time
c) O(log n ) time
d) O(n log n ) time
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement(s) is TRUE?
I. A hash function takes a message of arbitrary length and generates a fixed length code.
II. A hash function takes a message of fixed length and generates a code of variable length.
III. A hash function may give the same hash value for distinct messages.
I only
II and III only
I and III only
II only
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is direct addressing?
A. Distinct array position for every possible key
B. Fewer array positions than keys
C. Fewer keys than array positions
D. None of the mentioned
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Quiz No. 2.2 Hash Tables

Quiz
•
University
16 questions
Revision for Chapter 5

Quiz
•
University
20 questions
Digital Forensics

Quiz
•
University
20 questions
Data Structures and Algorithm

Quiz
•
University
10 questions
searching quiz

Quiz
•
University
15 questions
Authentication Quiz

Quiz
•
11th Grade - University
15 questions
UNIT-IV 2

Quiz
•
University
20 questions
Data Structures Quiz

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade