Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 24 pages
Exam (elaborations)

WGU D446 DATA STRUCTURES AND ALGORITHMS I - COMPREHENSIVE OA PRACTICE EXAM QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 3 out of 24 pages

WGU D446 DATA STRUCTURES AND ALGORITHMS I - COMPREHENSIVE OA PRACTICE EXAM QUESTIONS AND ANSWERS

Content preview

WGU D446 DATA STRUCTURES AND
ALGORITHMS I - COMPREHENSIVE OA
PRACTICE EXAM QUESTIONS AND
ANSWERS



1. What is the Big O notation for the worst-case time complexity of an insertion into a Binary

Search Tree (BST) that is not balanced?

A. O(log n)


B. O(1)


C. O(n log n)


D. O(n)


Answer: D


Conceptual Explanation: In a worst-case scenario where a BST becomes a degenerate

(linked-list-like) structure, insertion requires traversing all nodes, leading to O(n)

complexity.


2. Which data structure is most efficient for implementing a Last-In-First-Out (LIFO) behavior?

A. Stack


B. Queue

,C. Linked List


D. Heap


Answer: A


Conceptual Explanation: A Stack is specifically designed for LIFO operations where the

last element added is the first one removed.


3. In the context of Big O notation, what does it mean if an algorithm is O(log n)?

A. The execution time increases linearly with input size.


B. The execution time increases by a constant amount as input size doubles.


C. The execution time doubles as the input size doubles.


D. The execution time is constant regardless of input size.


Answer: B


Conceptual Explanation: Logarithmic time O(log n) implies that as the input size n

increases exponentially (doubles), the time only increases by a fixed constant amount.


4. Which sorting algorithm has a worst-case time complexity of O(n^2) but is often faster in

practice due to a low constant factor?

A. Merge Sort


B. Radix Sort


C. Heap Sort

, D. Quick Sort


Answer: D


Conceptual Explanation: Quick Sort has a worst-case of O(n^2) when the pivot selection

is poor, but its average-case is O(n log n) and typically outperforms Merge Sort due to

cache locality and low overhead.


5. What is the primary disadvantage of using a Singly Linked List compared to an Array?

A. Slower insertion at the beginning.


B. Higher memory overhead per element due to pointers.


C. Inability to store large data types.


D. Fixed size constraints.


Answer: B


Conceptual Explanation: Linked lists require extra memory for pointers at each node,

whereas arrays only store the raw data, though arrays have contiguous memory

requirements.


6. When using a Hash Table, what is ‘Linear Probing’?

A. A collision resolution method that checks the next slot in the array.


B. A technique to sort the table.


C. A method to increase the hash function speed.


D. The process of resizing the table.

Document information

Uploaded on
July 31, 2026
Number of pages
24
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TheStar
3.7
(140)
Sold
716
Followers
178
Items
27421
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions