Docsity

D76L 35 Software Development: Abstract Data Structures ExamMastery, Exams of Technology

Partial preview of the text

Download D76L 35 Software Development: Abstract Data Structures ExamMastery and more Exams Technology in PDF only on Docsity!

D76L 35 Software

Development: Abstract

Data Structures

Question 1

Which statement preserves the relationship involving Separation of interface?

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 colleague must explain why Best-case and prevention of memory leaks in dynamic

structures belong to different parts of the work. Which pairing provides the correct

explanation?

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

Which comparison correctly distinguishes Queues from Trees?

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

The following checks serve different areas of the work: (1) traversal; (2) leaf; (3)

Pre-order. Which assignment is defensible?

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 colleague must explain why edges and linear probing belong to different parts of

the work. Which pairing provides the correct explanation?

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

The work record contains two entries: (1) enqueue, dequeue, front, and isEmpty; (2)

Insertion, deletion, searching, finding minimum/maximum. Which interpretation

assigns each entry to the appropriate area?

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

Two activities are being compared: (1) enqueue, dequeue, front, and isEmpty; (2)

Pre-order, in-order, post-order, and level-order. Which interpretation correctly

separates their subject matter?

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

Three work records mention (1) searching; (2) double-ended queues (deques); (3)

linear probing. Which interpretation accurately relates all three entries to their

areas?

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

Which comparison correctly distinguishes FIFO from Applications of graphs?

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

Four checks address different aspects of the work: (1) enqueue; (2) finding

minimum/maximum; (3) linear probing; (4) extraction. Which mapping is defensible?

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

An explanation of Hash Tables and Hashing focuses on Array-based lists vs. linked

lists (singly, doubly, and circular linked lists). Which subject should it address to

restore the intended focus?

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

Two topics are being compared. The first concerns Principles of hashing and hash

functions; the second concerns Practical applications of queues (scheduling,

breadth-first traversal, and buffering). Which allocation is accurate?

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

An action plan contains separate entries for push and cycles. Which allocation of

these entries is most accurate?

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 planning note merges the references to singly and First-Out. Which interpretation

correctly restores the distinction between their areas?

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 comparative review records four separate considerations: (1) double-ended

queues (deques); (2) cycles; (3) double hashing; (4) heapify. Which classification

preserves all four associations?

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 reviewer needs to separate the subject matter of (1) push; (2) priority queues; (3)

subtree; (4) in-order. Which arrangement retains each correct association?

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

Four work records concern (1) priority queues; (2) finding minimum/maximum; (3)

linear probing; (4) heapify. Which classification accurately identifies all their

focuses?

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

Three evidence notes address (1) traversal; (2) double-ended queues (deques); (3)

cycles. How should the notes be classified without reversing their associations?

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

Match the following focuses to the numbered descriptions. Focuses: I. Balanced

search trees; II. Terminology; III. Graph traversal algorithms; IV. Graph

representation techniques. Descriptions: 1. Adjacency matrix and adjacency list; 2.

Vertices, edges, directed/undirected graphs, weighted graphs, paths, and cycles; 3.

Depth-First Search (DFS) and Breadth-First Search (BFS); 4. Overview of AVL trees

and Red-Black trees. Which assignment preserves all of the distinctions?

A. I: 2; II: 4; III: 1; IV: 3

B. I: 2; II: 4; III: 3; IV: 1

C. I: 4; II: 2; III: 3; IV: 1

D. I: 1; II: 4; III: 2; IV: 3

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

An explanation of Separation of interface focuses on First-In, First-Out. Which

subject should it address to restore the intended focus?

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

What is the associated focus of Practical applications of queues?

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

Three evidence notes address (1) circular linked lists; (2) Last-In; (3) breadth-first

traversal. How should the notes be classified without reversing their associations?

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 learner describes Applications of graphs (shortest path algorithms, network

routing, and dependency resolution) as Queues. Which correction preserves the

intended distinction?

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

What is the most accurate way to distinguish the focus of a check on deletion from

a check on peek/top?

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 comparative review records four separate considerations: (1) isEmpty; (2) finding

minimum/maximum; (3) quadratic probing; (4) extraction. Which classification

preserves all four associations?

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

An evaluation groups observations under List operations and Terminology. Where

should the observations concerning deletion and Vertices be placed?

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.