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 45 pages
Exam (elaborations)

WGU C949 Data Structures and Algorithms I OA Practice Exam Questions and Answers 2026. Advanced NCLEX-Style 100 MCQs with Rationales.pdf

Document preview thumbnail
Preview 4 out of 45 pages

WGU C949 Data Structures and Algorithms I OA Practice Exam Questions and Answers 2026. Advanced NCLEX-Style 100 MCQs with R

Content preview

WGU C949 Data Structures and Algorithms I


WGU C949 Data Structures and
Algorithms I OA Practice Exam Questions
and Answers 2026. Advanced NCLEX-
Style 100 MCQs with Rationales.
Question 1

Which data structure follows the Last-In, First-Out (LIFO) principle?

A. Queue
B. Stack
C. Linked List
D. Tree

Answer: B. Stack

Rationale:
A stack removes the most recently added item first (LIFO). Queues use FIFO, while linked lists
and trees do not inherently enforce LIFO ordering.



Question 2

Which Big-O notation represents constant-time complexity?

A. O(log n)
B. O(n)
C. O(1)
D. O(n²)

Answer: C. O(1)

Rationale:
Constant-time operations take the same amount of time regardless of input size, such as
accessing an array element by index.



Question 3

, WGU C949 Data Structures and Algorithms I

Which searching algorithm requires the data to be sorted before searching?

A. Linear Search
B. Binary Search
C. Breadth-First Search
D. Depth-First Search

Answer: B. Binary Search

Rationale:
Binary search repeatedly divides a sorted collection in half. Linear search works on both sorted
and unsorted data.



Question 4

What is the worst-case time complexity of linear search?

A. O(log n)
B. O(1)
C. O(n)
D. O(n log n)

Answer: C. O(n)

Rationale:
In the worst case, every element must be examined.



Question 5

Which data structure is typically used to implement Breadth-First Search (BFS)?

A. Stack
B. Queue
C. Heap
D. Array

Answer: B. Queue

Rationale:
BFS visits nodes level by level, making a queue ideal for maintaining the order of traversal.

, WGU C949 Data Structures and Algorithms I

Question 6

Which sorting algorithm repeatedly swaps adjacent elements until the list is sorted?

A. Merge Sort
B. Quick Sort
C. Bubble Sort
D. Heap Sort

Answer: C. Bubble Sort

Rationale:
Bubble sort compares adjacent elements and swaps them when they are out of order.



Question 7

What is the average-case time complexity of binary search?

A. O(n)
B. O(log n)
C. O(n²)
D. O(1)

Answer: B. O(log n)

Rationale:
Each comparison eliminates half of the remaining search space.



Question 8

Which data structure is best for representing a hierarchical organization chart?

A. Queue
B. Tree
C. Stack
D. Hash Table

Answer: B. Tree

Rationale:
Trees naturally model parent-child relationships.

, WGU C949 Data Structures and Algorithms I



Question 9

What is the primary advantage of a hash table?

A. Sorted storage
B. Fast average lookup
C. Minimal memory usage
D. Guaranteed O(1) worst-case search

Answer: B. Fast average lookup

Rationale:
Hash tables provide average O(1) insertion and lookup, although worst-case performance can
degrade if many collisions occur.



Question 10

Which traversal visits the root before its children?

A. Inorder
B. Postorder
C. Preorder
D. Level-order

Answer: C. Preorder

Rationale:
Preorder traversal processes the root first, then recursively visits the left and right subtrees.



Question 11

Which ADT operates on a First-In, First-Out (FIFO) basis?

A. Stack
B. Queue
C. Binary Tree
D. Graph

Answer: B. Queue

Document information

Uploaded on
June 26, 2026
Number of pages
45
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$30.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.
PrincessKinsley
4.5
(118)
Sold
232
Followers
115
Items
3951
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