Practice Library
All MCQs
Browse exam-wise, subject-wise, and country-wise MCQs with explanations.
Choose an option to check your answer.
A.
Quick Sort
B.
Quadratic Probing
C.
Fenwick Tree
D.
Bloom Filter
Show Answer
Correct Answer: D. Bloom Filter
Explanation:
Bloom Filter fits because it supports quickly rejecting items that are definitely absent and false positives are possible but false negatives are not under normal operation.
Both clues point to this choice.
Choose an option to check your answer.
A.
its subtrees do not become excessively skewed
B.
reachability analysis helps determine which objects can be reclaimed
C.
false positives are possible but false negatives are not under normal operation
D.
it provides excellent amortized decrease-key performance
Show Answer
Correct Answer: C. false positives are possible but false negatives are not under normal operation
Explanation:
The defining property is that false positives are possible but false negatives are not under normal operation.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
cache-friendly hash tables
B.
quickly rejecting items that are definitely absent
C.
search-intensive applications requiring predictable logarithmic height
D.
in-place sorting with O(n log n) worst-case time
Show Answer
Correct Answer: B. quickly rejecting items that are definitely absent
Explanation:
Bloom Filter is commonly used for quickly rejecting items that are definitely absent.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
Bloom Filter
B.
Max-Heap
C.
Singly Linked List
D.
B-Tree
Show Answer
Correct Answer: A. Bloom Filter
Explanation:
Bloom Filter is a probabilistic structure for membership testing.
This description distinguishes it from the other choices.
Choose an option to check your answer.
A.
Stack
B.
Doubly Linked List
C.
Linear Probing
D.
Skip List
Show Answer
Correct Answer: D. Skip List
Explanation:
Skip List fits because it supports ordered dictionary operations with expected logarithmic time and higher levels allow traversal to skip many nodes.
Both clues point to this choice.
Choose an option to check your answer.
A.
it flattens the parent structure over time
B.
collisions must be handled when keys map to the same position
C.
higher levels allow traversal to skip many nodes
D.
both front and rear operations can be efficient
Show Answer
Correct Answer: C. higher levels allow traversal to skip many nodes
Explanation:
The defining property is that higher levels allow traversal to skip many nodes.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
frequent insertions at the head
B.
ordered dictionary operations with expected logarithmic time
C.
expressing a guaranteed minimum growth rate
D.
task scheduling and buffering
Show Answer
Correct Answer: B. ordered dictionary operations with expected logarithmic time
Explanation:
Skip List is commonly used for ordered dictionary operations with expected logarithmic time.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
Skip List
B.
Quadratic Probing
C.
Binary Tree
D.
Heap Sort
Show Answer
Correct Answer: A. Skip List
Explanation:
Skip List is a layered linked structure with probabilistic shortcuts.
This description distinguishes it from the other choices.
Choose an option to check your answer.
A.
Skip List
B.
Directed Graph
C.
Binary Search
D.
Sparse Table
Show Answer
Correct Answer: D. Sparse Table
Explanation:
Sparse Table fits because it supports fast idempotent range queries such as minimum and it does not naturally support frequent updates.
Both clues point to this choice.
Choose an option to check your answer.
A.
its merge step usually needs auxiliary storage for arrays
B.
it typically uses recursion or a stack
C.
it does not naturally support frequent updates
D.
its main operations are find and union
Show Answer
Correct Answer: C. it does not naturally support frequent updates
Explanation:
The defining property is that it does not naturally support frequent updates.
The other statements describe different structures or concepts.
Choose an option to check your answer.
A.
ordered dictionary operations with expected logarithmic time
B.
fast idempotent range queries such as minimum
C.
cycle detection, topological reasoning, and connectivity
D.
algorithms with many decrease-key operations
Show Answer
Correct Answer: B. fast idempotent range queries such as minimum
Explanation:
Sparse Table is commonly used for fast idempotent range queries such as minimum.
Its design supports this task efficiently or naturally.
Choose an option to check your answer.
A.
Sparse Table
B.
Heap
C.
Queue
D.
Double Hashing
Show Answer
Correct Answer: A. Sparse Table
Explanation:
Sparse Table is a static range-query structure built from overlapping power-of-two intervals.
This description distinguishes it from the other choices.