Practice Library
All MCQs
Browse exam-wise, subject-wise, and country-wise MCQs with explanations.
Choose an option to check your answer.
A.
Depth-First Search
B.
Binary Search Tree
C.
Adjacency List
D.
Directed Graph
Show Answer
Correct Answer: D. Directed Graph
Explanation:
Directed Graph fits because it supports modeling one-way relationships and an edge from u to v need not imply an edge from v to u.
Both clues point to this choice.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.