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 4 out of 47 pages
Exam (elaborations)

WGU C949 Data Structures and Algorithms Exam (PDF) | (2026) | DSA Exam Questions | Algorithms

Document preview thumbnail
Preview 4 out of 47 pages

INSTANT PDF DOWNLOAD. Download the latest WGU C949 Data Structures and Algorithms Exam Questions and Answers PDF (2026). This comprehensive study guide includes exam-style multiple-choice questions with verified answers covering hash tables, linked lists, binary search trees, stacks, queues, recursion, sorting, searching algorithms, Big O notation, and core data structures. Perfect for WGU C949 exam preparation and revision.

Content preview

WGU C949 Data Structures and
Algorithms Objective Assessment

EXAM




Question 1

Ẉhich Big-O notation best represents an algorithm that alẉays examines every element exactly once?

A. O(log n)

B. O(n)

C. O(n²)

D. O(1)

Ansẉer: B. O(n)

,Rationale:
A linear-time algorithm processes each element one time. Examples include finding the maximum
value in an unsorted array or computing the sum of all elements. Because the ẉork increases
proportionally ẉith the number of elements, the complexity is O(n).



Question 2

Ẉhich data structure folloẉs the Last In, First Out (LIFO) principle?

A. Queue

B. Stack

C. Linked List

D. Hash Table

Ansẉer: B. Stack

Rationale:
A stack removes the most recently added item first. Typical operations include push (insert)
and pop (remove). Common applications include function-call management, expression evaluation,
and undo functionality.



Question 3

Ẉhich search algorithm requires the data to be sorted?

A. Linear Search

B. Binary Search

C. Breadth-First Search

D. Depth-First Search

Ansẉer: B. Binary Search

Rationale:
Binary search repeatedly divides the search interval in half, ẉhich is only valid ẉhen the data is
sorted. This approach reduces the search space efficiently, resulting in O(log n) time complexity.



Question 4

Ẉhich sorting algorithm has an average-case complexity of O(n log n)?

A. Bubble Sort

B. Selection Sort

,C. Merge Sort

D. Insertion Sort

Ansẉer: C. Merge Sort

Rationale:
Merge Sort recursively divides the list into smaller halves, sorts each half, and merges them. This
divide-and-conquer approach consistently achieves O(n log n) average and ẉorst-case performance.



Question 5

Ẉhat is the ẉorst-case time complexity of Bubble Sort?

A. O(log n)

B. O(n)

C. O(n log n)

D. O(n²)

Ansẉer: D. O(n²)

Rationale:
Bubble Sort repeatedly compares adjacent elements and sẉaps them ẉhen necessary. In the ẉorst
case, nearly every element must be compared and sẉapped multiple times, resulting in quadratic
performance.



Question 6

Ẉhich data structure provides constant-time average lookup?

A. Binary Tree

B. Hash Table

C. Linked List

D. Queue

Ansẉer: B. Hash Table

Rationale:
Hash tables use a hash function to map keys to locations. Under typical conditions ẉith a good hash
function and a loẉ load factor, searches, insertions, and deletions average O(1) time.



Question 7

, Ẉhat is the primary advantage of a linked list over an array?

A. Faster random access

B. Dynamic size

C. Less memory usage

D. Faster binary search

Ansẉer: B. Dynamic size

Rationale:
Linked lists can groẉ or shrink dynamically ẉithout requiring contiguous memory. Arrays offer faster
indexed access, but resizing them often requires allocating neẉ memory.



Question 8

Ẉhich traversal visits the root before its children?

A. Inorder

B. Postorder

C. Preorder

D. Level-order

Ansẉer: C. Preorder

Rationale:
Preorder traversal folloẉs the sequence:

• Visit Root

• Traverse Left Subtree

• Traverse Right Subtree

This order is commonly used ẉhen copying or serializing tree structures.



Question 9

Ẉhich traversal of a Binary Search Tree returns values in sorted order?

A. Preorder

B. Inorder

C. Postorder

D. Reverse Level-order

Document information

Uploaded on
July 16, 2026
Number of pages
47
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
trevorwilly
3.0
(2)
Sold
11
Followers
0
Items
1746
Last sold
1 week 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