
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Question 1
A. Separation of interface: specification. B. Separation of interface: Last-In, First-Out. C. Separation of interface: Min-heap and Max-heap properties. D. Separation of interface: O, Ī©, Ī.
Correct Answer: A
Full Explanation: Separation of interface is associated with specification. For comparison, LIFO concerns Last-In, First-Out. The distinction is the content of the association, rather than merely a similarity in terminology.
Question 2
A. First: Algorithm Efficiency and Performance Analysis; second: Implementation and Software Engineering Practices B. First: Implementation and Software Engineering Practices; second: Implementation and Software Engineering Practices C. First: Algorithm Efficiency and Performance Analysis; second: Algorithm Efficiency and Performance Analysis D. First: Implementation and Software Engineering Practices; second: Algorithm Efficiency and Performance Analysis
Correct Answer: A
Full Explanation: Algorithm Efficiency and Performance Analysis includes consideration of Best-case; Implementation and Software Engineering Practices includes consideration of prevention of memory leaks in dynamic structures. The distinction follows their respective focuses: Best-case, average-case, and worst-case performance trade-offs; Memory management, garbage collection, and prevention of memory leaks in dynamic structures. Reversing the associations or assigning both considerations to one area would misclassify at least one of them.
Question 5
A. Queues: Implementations using arrays and linked lists; Trees: Implementations using arrays and linked lists. B. Queues: Binary trees and binary search trees (BSTs); Trees: Binary trees and binary search trees (BSTs). C. Queues: Implementations using arrays and linked lists; Trees: Binary trees and binary search trees (BSTs). D. Queues: Binary trees and binary search trees (BSTs); Trees: Implementations using arrays and linked lists.
Correct Answer: C
Full Explanation: Queues concerns Implementations using arrays and linked lists. Trees concerns Binary trees and binary search trees (BSTs). These associations distinguish their respective meanings; interchanging them or treating them as identical loses that distinction.
Question 6
A. 1: List operations; 2: Terminology; 3: Tree traversal algorithms B. 1: Tree traversal algorithms; 2: Terminology; 3: List operations C. 1: List operations; 2: Tree traversal algorithms; 3: Terminology D. 1: Terminology; 2: List operations; 3: Tree traversal algorithms
Correct Answer: A
Full Explanation: List operations includes traversal; Terminology includes leaf; Tree traversal algorithms includes Pre-order. Each consideration must be interpreted within its own focus. The other mappings exchange two associations and therefore misclassify those considerations.
Question 7
A. First: Collision resolution strategies; second: Terminology B. First: Collision resolution strategies; second: Collision resolution strategies C. First: Terminology; second: Collision resolution strategies D. First: Terminology; second: Terminology
Correct Answer: C
Full Explanation: Terminology includes consideration of edges; Collision resolution strategies includes consideration of linear probing. The distinction follows their respective focuses: Vertices, edges, directed/undirected graphs, weighted graphs, paths, and cycles; Separate chaining and open addressing (linear probing, quadratic probing, double hashing). Reversing the associations or assigning both considerations to one area would misclassify at least one of them.
Question 8
A. First: Core queue methods; second: Core queue methods B. First: Core queue methods; second: Operations on BSTs C. First: Operations on BSTs; second: Core queue methods D. First: Operations on BSTs; second: Operations on BSTs
Correct Answer: B
Full Explanation: The first activity concerns Core queue methods, which includes enqueue, dequeue, front, and isEmpty. The second concerns Operations on BSTs, which includes Insertion, deletion, searching, finding minimum/maximum. Keeping the two associations separate avoids reversing their focus or treating both as the same requirement.
Question 11
A. First: Core queue methods; second: Tree traversal algorithms B. First: Core queue methods; second: Core queue methods C. First: Tree traversal algorithms; second: Tree traversal algorithms D. First: Tree traversal algorithms; second: Core queue methods
Correct Answer: A
Full Explanation: The first activity concerns Core queue methods, which includes enqueue, dequeue, front, and isEmpty. The second concerns Tree traversal algorithms, which includes Pre-order, in-order, post-order, and level-order. Keeping the two associations separate avoids reversing their focus or treating both as the same requirement.
Question 12
A. 1: List operations; 2: Collision resolution strategies; 3: Variations B. 1: Variations; 2: List operations; 3: Collision resolution strategies C. 1: Collision resolution strategies; 2: Variations; 3: List operations D. 1: List operations; 2: Variations; 3: Collision resolution strategies
Correct Answer: D
Full Explanation: List operations includes searching; Variations includes double-ended queues (deques); Collision resolution strategies includes linear probing. Each consideration must be interpreted within its own focus. The other mappings exchange two associations and therefore misclassify those considerations.
Question 13
A. FIFO: shortest path algorithms, network routing, and dependency resolution; Applications of graphs: shortest path algorithms, network routing, and dependency resolution. B. FIFO: First-In, First-Out; Applications of graphs: shortest path algorithms, network routing, and dependency resolution. C. FIFO: shortest path algorithms, network routing, and dependency resolution; Applications of graphs: First-In, First-Out. D. FIFO: First-In, First-Out; Applications of graphs: First-In, First-Out.
Correct Answer: B
Full Explanation: FIFO concerns First-In, First-Out. Applications of graphs concerns shortest path algorithms, network routing, and dependency resolution. These associations distinguish their respective meanings; interchanging them or treating them as identical loses that distinction.
Question 14
A. 1: Operations on BSTs; 2: Core queue methods; 3: Collision resolution strategies; 4: Heap operations B. 1: Core queue methods; 2: Collision resolution strategies; 3: Operations on BSTs; 4: Heap operations C. 1: Core queue methods; 2: Operations on BSTs; 3: Collision resolution strategies; 4: Heap operations D. 1: Core queue methods; 2: Operations on BSTs; 3: Heap operations; 4: Collision resolution strategies
Correct Answer: C
Full Explanation: Core queue methods includes enqueue; Operations on BSTs includes finding minimum/maximum; Collision resolution strategies includes linear probing; Heap operations includes extraction. Each consideration belongs with its corresponding focus. Every alternative mapping exchanges a pair of these associations and misclassifies those two considerations.
Question 17
A. LIFO (Last-In, First-Out) operational principle B. Heap sort algorithm C. Array-based lists vs. linked lists (singly, doubly, and circular linked lists) D. Map and Set ADTs implemented via hash tables
Correct Answer: D
Full Explanation: Hash Tables and Hashing concerns Map and Set ADTs implemented via hash tables. Lists and Collections concerns Array-based lists vs. linked lists (singly, doubly, and circular linked lists). These associations distinguish their respective meanings; interchanging them or treating them as identical loses that distinction.
Question 18
A. First: Queues; second: Queues B. First: Hash Tables and Hashing; second: Hash Tables and Hashing C. First: Hash Tables and Hashing; second: Queues D. First: Queues; second: Hash Tables and Hashing
Correct Answer: C
Full Explanation: Hash Tables and Hashing concerns Principles of hashing and hash functions. Queues concerns Practical applications of queues (scheduling, breadth-first traversal, and buffering). These associations distinguish their respective meanings; interchanging them or treating them as identical loses that distinction.
Question 19
A. First: Core stack methods; second: Terminology B. First: Terminology; second: Terminology C. First: Terminology; second: Core stack methods D. First: Core stack methods; second: Core stack methods
Correct Answer: A
Full Explanation: Core stack methods includes consideration of push; Terminology includes consideration of cycles. The distinction follows their respective focuses: push, pop, peek/top, and isEmpty; Vertices, edges, directed/undirected graphs, weighted graphs, paths, and cycles. Reversing the associations or assigning both considerations to one area would misclassify at least one of them.
Question 20
A. First: Lists and Collections; second: Stacks B. First: Stacks; second: Stacks C. First: Lists and Collections; second: Lists and Collections D. First: Stacks; second: Lists and Collections
Correct Answer: A
Full Explanation: Lists and Collections includes consideration of singly; Stacks includes consideration of First-Out. The distinction follows their respective focuses: Array-based lists vs. linked lists (singly, doubly, and circular linked lists); LIFO (Last-In, First-Out) operational principle. Reversing the associations or assigning both considerations to one area would misclassify at least one of them.
Question 23
A. 1: Variations; 2: Terminology; 3: Collision resolution strategies; 4: Heap operations B. 1: Variations; 2: Collision resolution strategies; 3: Terminology; 4: Heap operations C. 1: Variations; 2: Terminology; 3: Heap operations; 4: Collision resolution strategies D. 1: Terminology; 2: Variations; 3: Collision resolution strategies; 4: Heap operations
Correct Answer: A
Full Explanation: Variations includes double-ended queues (deques); Terminology includes cycles; Collision resolution strategies includes double hashing; Heap operations includes heapify. Each consideration belongs with its corresponding focus. Every alternative mapping exchanges a pair of these associations and misclassifies those two considerations.
Question 24
A. 1: Core stack methods; 2: Terminology; 3: Variations; 4: Tree traversal algorithms B. 1: Variations; 2: Core stack methods; 3: Terminology; 4: Tree traversal algorithms C. 1: Core stack methods; 2: Variations; 3: Terminology; 4: Tree traversal algorithms D. 1: Core stack methods; 2: Variations; 3: Tree traversal algorithms; 4: Terminology
Correct Answer: C
Full Explanation: Core stack methods includes push; Variations includes priority queues; Terminology includes subtree; Tree traversal algorithms includes in-order. Each consideration belongs with its corresponding focus. Every alternative mapping exchanges a pair of these associations and misclassifies those two considerations.
Question 25
A. 1: Variations; 2: Operations on BSTs; 3: Collision resolution strategies; 4: Heap operations B. 1: Operations on BSTs; 2: Variations; 3: Collision resolution strategies; 4: Heap operations C. 1: Variations; 2: Collision resolution strategies; 3: Operations on BSTs; 4: Heap operations D. 1: Variations; 2: Operations on BSTs; 3: Heap operations; 4: Collision resolution strategies
Correct Answer: A
Full Explanation: Variations includes priority queues; Operations on BSTs includes finding minimum/maximum; Collision resolution strategies includes linear probing; Heap operations includes heapify. Each consideration belongs with its corresponding focus. Every alternative mapping exchanges a pair of these associations and misclassifies those two considerations.
Question 26
A. 1: Variations; 2: List operations; 3: Terminology B. 1: Terminology; 2: Variations; 3: List operations C. 1: List operations; 2: Terminology; 3: Variations D. 1: List operations; 2: Variations; 3: Terminology
Correct Answer: D
Full Explanation: List operations includes traversal; Variations includes double-ended queues (deques); Terminology includes cycles. Each consideration must be interpreted within its own focus. The other mappings exchange two associations and therefore misclassify those considerations.
Question 29
Correct Answer: C
Full Explanation: Balanced search trees addresses this content: Overview of AVL trees and Red-Black trees. Terminology addresses this content: Vertices, edges, directed/undirected graphs, weighted graphs, paths, and cycles. Graph traversal algorithms addresses this content: Depth-First Search (DFS) and Breadth-First Search (BFS). Graph representation techniques addresses this content: Adjacency matrix and adjacency list.
Question 30
A. specification B. Last-In, First-Out C. O, Ī©, Ī D. First-In, First-Out
Correct Answer: A
Full Explanation: Separation of interface concerns specification. FIFO concerns First-In, First-Out. These associations distinguish their respective meanings; interchanging them or treating them as identical loses that distinction.
Question 31
A. scheduling, breadth-first traversal, and buffering B. Last-In, First-Out C. deques D. First-In, First-Out
Correct Answer: A
Full Explanation: Practical applications of queues is associated with scheduling, breadth-first traversal, and buffering. For comparison, LIFO concerns Last-In, First-Out. The distinction is the content of the association, rather than merely a similarity in terminology.
Question 32
A. 1: Queues; 2: Stacks; 3: Lists and Collections B. 1: Stacks; 2: Lists and Collections; 3: Queues C. 1: Lists and Collections; 2: Queues; 3: Stacks D. 1: Lists and Collections; 2: Stacks; 3: Queues
Correct Answer: D
Full Explanation: Lists and Collections includes circular linked lists; Stacks includes Last-In; Queues includes breadth-first traversal. Each consideration must be interpreted within its own focus. The other mappings exchange two associations and therefore misclassify those considerations.
Question 35
A. Treat Graphs and Queues as synonymous B. Associate both Graphs and Queues only with Implementations using arrays and linked lists C. Retain the association with Queues D. Associate this description with Graphs
Correct Answer: D
Full Explanation: Graphs concerns Applications of graphs (shortest path algorithms, network routing, and dependency resolution). Queues concerns Implementations using arrays and linked lists. These associations distinguish their respective meanings; interchanging them or treating them as identical loses that distinction.
Question 36
A. First: Core stack methods; second: List operations B. First: Core stack methods; second: Core stack methods C. First: List operations; second: Core stack methods D. First: List operations; second: List operations
Correct Answer: C
Full Explanation: List operations includes consideration of deletion; Core stack methods includes consideration of peek/top. The distinction follows their respective focuses: insertion, deletion, traversal, and searching; push, pop, peek/top, and isEmpty. Reversing the associations or assigning both considerations to one area would misclassify at least one of them.
Question 37
A. 1: Operations on BSTs; 2: Core queue methods; 3: Collision resolution strategies; 4: Heap operations B. 1: Core queue methods; 2: Operations on BSTs; 3: Collision resolution strategies; 4: Heap operations C. 1: Core queue methods; 2: Operations on BSTs; 3: Heap operations; 4: Collision resolution strategies D. 1: Core queue methods; 2: Collision resolution strategies; 3: Operations on BSTs; 4: Heap operations
Correct Answer: B
Full Explanation: Core queue methods includes isEmpty; Operations on BSTs includes finding minimum/maximum; Collision resolution strategies includes quadratic probing; Heap operations includes extraction. Each consideration belongs with its corresponding focus. Every alternative mapping exchanges a pair of these associations and misclassifies those two considerations.
Question 38
A. First: List operations; second: List operations B. First: Terminology; second: Terminology C. First: List operations; second: Terminology D. First: Terminology; second: List operations
Correct Answer: C
Full Explanation: List operations includes consideration of deletion; Terminology includes consideration of Vertices. The distinction follows their respective focuses: insertion, deletion, traversal, and searching; Vertices, edges, directed/undirected graphs, weighted graphs, paths, and cycles. Reversing the associations or assigning both considerations to one area would misclassify at least one of them.