MCQ Collection
Data Structures MCQs
Practice Data Structures questions with answers and explanations.
Choose an option to check your answer.
A.
Binary Search
B.
Skip List
C.
Radix Tree
D.
Undirected Graph
Show Answer
Correct Answer: D. Undirected Graph
Explanation:
Undirected Graph fits because it supports modeling symmetric relationships and each edge connects two vertices bidirectionally.
Both clues point to this choice.
Choose an option to check your answer.
A.
describing both upper and lower growth rates
B.
modeling one-way relationships
C.
repeatedly retrieving the largest element
D.
prefix sums with updates
Show Answer
Correct Answer: B. modeling one-way relationships
Explanation:
Directed Graph is commonly used for modeling one-way relationships.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
after each full pass, an extreme element reaches its final region
B.
both front and rear operations can be efficient
C.
an edge from u to v need not imply an edge from v to u
D.
its main operations are find and union
Show Answer
Correct Answer: C. an edge from u to v need not imply an edge from v to u
Explanation:
The defining property is that an edge from u to v need not imply an edge from v to u.
The other statements describe different structures or concepts.
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.
Graph
B.
Perfect Binary Tree
C.
Bubble Sort
D.
Union by Rank
Show Answer
Correct Answer: A. Graph
Explanation:
Graph is a set of vertices connected by edges.
This description distinguishes it from the other choices.
Choose an option to check your answer.
A.
cycle detection, topological reasoning, and connectivity
B.
modeling networks, routes, and relationships
C.
teaching basic sorting mechanics
D.
memory-constrained processing
Show Answer
Correct Answer: B. modeling networks, routes, and relationships
Explanation:
Graph is commonly used for modeling networks, routes, and relationships.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
its subtrees do not become excessively skewed
B.
false positives are possible but false negatives are not under normal operation
C.
edges may be directed or undirected
D.
cycles can prevent unreachable objects from being reclaimed
Show Answer
Correct Answer: C. edges may be directed or undirected
Explanation:
The defining property is that edges may be directed or undirected.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
Min-Heap
B.
Quadratic Probing
C.
Stack
D.
Graph
Show Answer
Correct Answer: D. Graph
Explanation:
Graph fits because it supports modeling networks, routes, and relationships and edges may be directed or undirected.
Both clues point to this choice.
Choose an option to check your answer.
A.
Directed Graph
B.
Bubble Sort
C.
Array
D.
Amortized Analysis
Show Answer
Correct Answer: A. Directed Graph
Explanation:
Directed Graph is a graph whose edges have orientation.
This description distinguishes it from the other choices.
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.