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

WGU C949 OBJECTIVE ASSESSMENT Actual Exam 2026/2027 | Data Structures and Algorithms – Complete Q&A with Rationales – Pass Guaranteed - A+ Graded

Document preview thumbnail
Preview 4 out of 36 pages

Pass the WGU C949 Objective Assessment with this actual exam for 2026/2027 aligned with the WGU Computer Science Curriculum. This complete resource covers arrays, linked lists, stacks, queues, hash tables, trees and graphs, sorting algorithms (bubble, merge, quick), searching algorithms (binary, linear), algorithm complexity analysis (Big O notation), recursion, and runtime optimization strategies. Each question includes detailed rationales and elaborated solutions. Backed by our Pass Guarantee. Download now.

Content preview

WGU C949 OBJECTIVE ASSESSMENT Actual
Exam | Data Structures and Algorithms –
Complete Q&A with Rationales – Pass
Guaranteed - A+ Graded




Section 1: Algorithm Analysis & Big O Complexity

Q1: In asymptotic analysis, what does Big O notation primarily describe about an
algorithm?

A. The exact execution time in milliseconds on a specific processor

B. The upper bound of an algorithm's growth rate relative to input size [CORRECT]

C. The lower bound of an algorithm's growth rate

D. The average memory usage across all possible inputs

Correct Answer: B

Rationale: For C949, remember that Big O describes the worst-case growth rate as n
gets large, ignoring constants and lower-order terms; it tells us how the algorithm
scales, not how fast it runs on your particular laptop.



Q2: What is the time complexity of the following algorithm?

,plainCopy

int sum = 0;
for (int i = 0; i < n; i++) {
sum += i;
}


A. O(log n)

B. O(n) [CORRECT]

C. O(n²)

D. O(1)

Correct Answer: B

Rationale: The best answer is B because the loop runs exactly n times, performing a
constant amount of work each iteration; that linear relationship gives us O(n) time
complexity.



Q3: Consider the following code snippet:

plainCopy

for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
System.out.println(i * j);
}
}


What is the time complexity of this code?

A. O(n)

B. O(n log n)

C. O(n²) [CORRECT]

,D. O(2^n)

Correct Answer: C

Rationale: Think about the number of operations as input size grows; the outer loop
runs n times and the inner loop runs n times for each outer iteration, giving n × n total
iterations, which is quadratic growth.



Q4: Which time complexity best describes the worst-case scenario for binary search on
a sorted array of size n?

A. O(n)

B. O(log n) [CORRECT]

C. O(n log n)

D. O(1)

Correct Answer: B

Rationale: The best answer is B because binary search halves the search space every
iteration; even in the worst case, you only need log₂(n) comparisons to narrow down to a
single element.



Q5: Quicksort has an average-case time complexity of O(n log n). What is its worst-case
time complexity, and under what condition does it typically occur?

A. O(n²), when the pivot selection consistently splits the array into highly unbalanced
partitions [CORRECT]

B. O(n log n), regardless of how pivots are chosen

, C. O(n), when the array is already sorted

D. O(log n), when using the first element as the pivot

Correct Answer: A

Rationale: The best answer is A because if you keep picking the smallest or largest
element as the pivot—like always choosing the first element on sorted data—you get
one empty partition and one partition of size n-1, which degrades to quadratic time.



Q6: Which of the following best describes the space complexity of a standard recursive
implementation of merge sort?

A. O(1)

B. O(log n) for the recursion stack only

C. O(n) due to the auxiliary array needed for merging [CORRECT]

D. O(n²)

Correct Answer: C

Rationale: The best answer is C because merge sort needs a temporary array to hold the
merged result; that auxiliary array is proportional to n, giving it O(n) space complexity
even though the recursion stack is only O(log n).



Q7: In asymptotic notation, Big Omega (Ω) is used to represent which bound on an
algorithm's growth rate?

A. Upper bound

B. Lower bound [CORRECT]

Document information

Uploaded on
May 12, 2026
Number of pages
36
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.00

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.
PrimeScholars
3.2
(10)
Sold
69
Followers
0
Items
3035
Last sold
1 day 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