100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COS2611 LATEST EXAM PACK 2025/2026[DETAILED QUESTIONS AND CORRECT ANSWERS PROVIDED]

Rating
-
Sold
-
Pages
83
Grade
A+
Uploaded on
13-11-2025
Written in
2025/2026

COS2611 LATEST EXAM PACK 2025/2026 [DETAILED QUESTIONS AND CORRECT ANSWERS PROVIDED]










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
November 13, 2025
Number of pages
83
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COS2611
2

, COS2611/101



EXAM PACK
LATEST QUESTIONS AND CORRECT
ANSWERS PROVIDED
MCQ




1.Which of the following functions is ordered by growth rate from largest to
smallest? ORDERS OF MAGNITUDE (small to large): 1, N, log , Nlog , N , N , 2 , N! a.
Nlog , 2 , N , 2
b. 2 , Nlog , N , 2

c. 2 , N , Nlog , 2

d. 2 , 2 , N , Nlog

e. 2 , N , 2 , Nlog




2. What is the running time of the following code fragment?
for (int i = 0; i < 5n; i++) 1; 5N + 1; 5N = 10N + 2
sum++; O(N)
a. O(1)

b. O(N)

c. O(log )

d. O(Nlog )

e. O(N )



Questions 3, 4 and 5 refer to the following code fragment:
1. for (int j = 1; j <= 10000; j *= 2) 1; 10001; 10000/2 = O (1)
2. for (int k = 1; k <= n; k++) 1; N + 1; N = 2N + 2
3. sum++; (2N + 2) ∗ 1

4. for (int p = n; p > 1; p /= 2) 1; N + 1; log= N + 2 + log
5. for (int q = 0; q < 500; q++) 1; 501; 500 = O (1)
6. sum--; (log + N + 2) ∗ 1
2. How many times is statement 3 executed?
3

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.
LearnedWriter University of south africa
View profile
Follow You need to be logged in order to follow users or courses
Sold
894
Member since
2 year
Number of followers
94
Documents
1174
Last sold
1 week ago
LearnedWriter

On this page you will find all documents offered by seller LearnedWriter.

4,1

107 reviews

5
57
4
21
3
20
2
5
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions