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

WGU C960 – Discrete Mathematics II Objective Assessment Review | Full Questions, Correct Answers, and Worked Solutions | 2026 Update | 100% Correct.

Rating
2.0
(1)
Sold
2
Pages
73
Grade
A+
Uploaded on
13-03-2026
Written in
2025/2026

WGU C960 – Discrete Mathematics II Objective Assessment Review | Full Questions, Correct Answers, and Worked Solutions | 2026 Update | 100% Correct.

Content preview

WGU C960 – Discrete Mathematics II Objective Assessment Review | Full Questions, Correct Answers,
and Worked Solutions – 2026 Update | 100% Correct.

1. Merge pseudocode

Question:
Consider the following pseudocode that merges two lists of numbers into one:

 Merge0(List1, List2)
 Set OUTlist to empty
 While List1 is not empty OR List2 is not empty
 If one list is empty and the other is not,
Remove the first number from the non-empty list and add it to OUTlist
 If both lists are non-empty,
Remove the first number from List1 and add it to OUTlist
Remove the first number from List2 and add it to OUTlist
 Return OUTlist

If ListA is [1, 3, 5] and ListB is [2, 4, 6] then what is the result of
Merge0(ListA, Merge0(ListB, ListA))?

Correct answer:
[1, 2, 3, 1, 5, 4, 3, 6, 5]

Solution:
First compute Merge0(ListB, ListA):

 Merge [2,4,6] with [1,3,5]
 Output becomes [2,1,4,3,6,5]

Now compute Merge0(ListA, [2,1,4,3,6,5]):

 Take 1, then 2
 Take 3, then 1
 Take 5, then 4
 ListA is empty, so append remaining 3,6,5

Final result:
[1, 2, 3, 1, 5, 4, 3, 6, 5]




2. Sieve-style pseudocode

Question:
Given this pseudocode, what is S at the end?

,Correct answer:
{2, 3, 5, 7, 11, 13, 17, 19}

Solution:
The code removes multiples of each x from 2 through 10, except x itself. That leaves only primes
in the original set 2 through 20.



3. While loop value

Question:
Given:

 x := 2
 count := 4
 while (count > 0)
 x := 2 × x
 count := count - 1

What is the final value of x?

Correct answer:
32

Solution:
Start with x = 2. Double it 4 times:

 4
 8
 16
 32



4. Runtime of Sampler

Question:
A function repeatedly appends element N of the data and then sets N := N/2. What is the worst-
case runtime?

Correct answer:
O(log₂ N)

Solution:
Each iteration cuts N in half, so the number of iterations is logarithmic.

,5. Simple Sort complexity

Question:
What is the asymptotic worst-case complexity of the given Simple Sort algorithm?

Correct answer:
O(n²)

Solution:
It has nested loops of size about n and n, so total work is quadratic.



6. bubbleSort worst case

Question:
What is the worst-case performance of the given bubble sort pseudocode?

Correct answer:
O(n²)

Solution:
Bubble sort in the worst case performs about n² comparisons/swaps.



7. Dominating runtime of Sort3

Question:
Assume Sort(list L) runs in O(n log n). Which function dominates the runtime of
Sort3(L1, L2, L3)?

Correct answer:
O(n³ log n)

Solution:
There is:

 an outer loop over L1 → n
 an inner loop over L2 → n
 repeated sorting of L3 → O(n log n)

, So dominant term is n × n × (n log n)? Careful: the Sort(L3) occurs inside the loop over
L2, and that whole structure is inside loop over L1, so:
n × n × (n log n) is too much unless each sort is on size n; it is, so result is O(n³ log n).




8. Theta function identification

Question:
Which function is Θ(x³)?

Correct answer:
4x³ + √x − 1

Solution:
The cubic term dominates all lower-order terms, so this is Θ(x³).



9. Big-O notation

Question:
What is the big-O notation for
f(n) = n × log(n²) + 7n³ + 5n + 3?

Correct answer:
O(n³)

Solution:
The highest-growth term is 7n³, which dominates n log(n²) and linear terms.



10. Ones digit of 3^902

Question:
What is the ones digit of 3^902?

Correct answer:
9

Solution:
Powers of 3 cycle in ones digit every 4:

 3¹ → 3
 3² → 9

Written for

Document information

Uploaded on
March 13, 2026
File latest updated on
May 1, 2026
Number of pages
73
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • wgu c960
$18.99
Get access to the full document:

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


Also available in package deal

Thumbnail
Package deal
WGU C960 Discrete Mathematics II OA Bundle with complete solutions.
-
5 2026
$ 32.39 More info

Reviews from verified buyers

Showing all reviews
4 hours ago

2.0

1 reviews

5
0
4
0
3
0
2
1
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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.
Wiseman NURSING
View profile
Follow You need to be logged in order to follow users or courses
Sold
8064
Member since
4 year
Number of followers
3887
Documents
30051
Last sold
9 hours ago
Premier Academic Solutions

3.9

1632 reviews

5
798
4
298
3
252
2
93
1
191

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