Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MS101 - Assignment Finals - (Reviewer)

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does time complexity measure?

a)

The amount of memory used by an algorithm

b)

The total number of lines in the code

c)

How execution time increases with input size

d)

The accuracy of an algorithm's output

2.

Which of the following is an example of a time complexity class that grows fastest with input size?

a)

Linear (O(n))

b)

Logarithmic (O(log n))

c)

Constant (O(1))

d)

Exponential (O(2ⁿ))

3.

What is the main focus of space complexity?

a)

The maximum time an algorithm can run

b)

The number of recursive calls

c)

The memory used by an algorithm

d)

The size of the output produced

4.

In asymptotic notation, what does Big O represent?

a)

Exact running time

b)

Lower bound

c)

Upper bound

d)

Average case

5.

Which type of time complexity describes the typical performance of an algorithm over all possible inputs?

a)

Best case

b)

Average case

c)

Worst case

d)

Standard case

6.

What does Theta (Θ) notation represent?

a)

Worst-case performance

b)

Average-case time

c)

Tight bound on performance

d)

The slowest algorithm possible

7.

Which time complexity class indicates performance that remains constant regardless of input size?

a)

O(n²)

b)

O(1)

c)

O(log n)

d)

O(n)

8.

Which notation provides the lower bound of an algorithm's running time?

a)

O(n)

b)

Ω (Omega)

c)

Θ (Theta)

d)

o(n)

9.

What does worst-case time complexity represent?

a)

Fastest scenario for the algorithm

b)

Typical running time for most inputs

c)

Maximum time on the largest or most difficult input

d)

Time complexity for random input

10.

Why is analyzing time complexity important?

a)

To determine the color of the program interface

b)

To ensure the code looks clean

c)

To evaluate how well an algorithm scales with large input

d)

To count the number of functions used answer