MCQ Collection
Data Structures 300 Unique MCQs
Practice Data Structures 300 Unique questions with answers and explanations.
Choose an option to check your answer.
A.
Double Hashing
B.
Deque
C.
Undirected Graph
D.
Union by Rank
Show Answer
Correct Answer: A. Double Hashing
Explanation:
Double Hashing is an open-addressing method that uses a second hash function as the probe step.
This description distinguishes it from the other choices.
Choose an option to check your answer.
A.
memory-constrained processing
B.
reducing clustering in hash tables
C.
substring search and text indexing
D.
describing both upper and lower growth rates
Show Answer
Correct Answer: B. reducing clustering in hash tables
Explanation:
Double Hashing is commonly used for reducing clustering in hash tables.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
its main operations are find and union
B.
each node stores two links
C.
the probe sequence depends on two hash functions
D.
its subtrees do not become excessively skewed
Show Answer
Correct Answer: C. the probe sequence depends on two hash functions
Explanation:
The defining property is that the probe sequence depends on two hash functions.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
Graph
B.
Radix Tree
C.
Circular Linked List
D.
Double Hashing
Show Answer
Correct Answer: D. Double Hashing
Explanation:
Double Hashing fits because it supports reducing clustering in hash tables and the probe sequence depends on two hash functions.
Both clues point to this choice.
Choose an option to check your answer.
A.
Skip List
B.
Circular Linked List
C.
Heap Sort
D.
Linear Probing
Show Answer
Correct Answer: D. Linear Probing
Explanation:
Linear Probing fits because it supports simple hash-table implementations and it can suffer from primary clustering.
Both clues point to this choice.
Choose an option to check your answer.
A.
reducing primary clustering compared with linear probing
B.
cache-friendly hash tables
C.
analyzing balanced full trees
D.
range queries with point or range updates
Show Answer
Correct Answer: B. cache-friendly hash tables
Explanation:
Open Addressing is commonly used for cache-friendly hash tables.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
it reuses blocks instead of requesting each one separately from the system
B.
it can support pattern search in time proportional to the pattern length
C.
probing searches for another available slot
D.
a node can store multiple keys and have multiple children
Show Answer
Correct Answer: C. probing searches for another available slot
Explanation:
The defining property is that probing searches for another available slot.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
Linear Probing
B.
B+ Tree
C.
Radix Tree
D.
Open Addressing
Show Answer
Correct Answer: D. Open Addressing
Explanation:
Open Addressing fits because it supports cache-friendly hash tables and probing searches for another available slot.
Both clues point to this choice.
Choose an option to check your answer.
A.
Linear Probing
B.
Suffix Tree
C.
Doubly Linked List
D.
Radix Tree
Show Answer
Correct Answer: A. Linear Probing
Explanation:
Linear Probing is an open-addressing method that checks consecutive slots after a collision.
This description distinguishes it from the other choices.
Choose an option to check your answer.
A.
connectivity queries and Kruskal's algorithm
B.
simple hash-table implementations
C.
fast pattern matching
D.
reducing primary clustering compared with linear probing
Show Answer
Correct Answer: B. simple hash-table implementations
Explanation:
Linear Probing is commonly used for simple hash-table implementations.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
an edge from u to v need not imply an edge from v to u
B.
leaf nodes are commonly linked for sequential access
C.
it can suffer from primary clustering
D.
every level is completely filled
Show Answer
Correct Answer: C. it can suffer from primary clustering
Explanation:
The defining property is that it can suffer from primary clustering.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
round-robin scheduling
B.
hash tables with flexible load factors
C.
fast idempotent range queries such as minimum
D.
tracking return addresses and local state
Show Answer
Correct Answer: B. hash tables with flexible load factors
Explanation:
Separate Chaining is commonly used for hash tables with flexible load factors.
Its design supports this task efficiently or naturally.