Quiz on Complexity Measures

Quiz on Complexity Measures

University

10 Qs

quiz-placeholder

Similar activities

Time Complexity

Time Complexity

University

10 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

BCSC0006 Trees

BCSC0006 Trees

University

10 Qs

Algorithms Data

Algorithms Data

University

15 Qs

Complexity Analysis Station [2]

Complexity Analysis Station [2]

University

7 Qs

HEAP TREE

HEAP TREE

University

11 Qs

CC 104 Prelim

CC 104 Prelim

University

11 Qs

DATA STRUCTURES QUIZ

DATA STRUCTURES QUIZ

University

15 Qs

Quiz on Complexity Measures

Quiz on Complexity Measures

Assessment

Quiz

Computers

University

Medium

Created by

Anasuya Sahoo

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation represents the worst-case time complexity of an algorithm?

A. Big O (O)

B. Big Omega (Ω)

C. Big Theta (Θ)

D. Little o (o)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation represents both the upper and lower bounds of an algorithm's time complexity?

A. Big O (O)

B. Big Omega (Ω)

C. Big Theta (Θ)

D. Little omega (ω)

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What two pieces of information allow you to analyse an algorithm?
Time Complexity
Space Complexity
Size Complexity
Complex Complexity
Simplicity Complex

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation is used to describe the average-case time complexity of an algorithm?

A. Big O (O)

B. Big Omega (Ω)

C. Big Theta (Θ)

D. Little omega (ω)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Asymptotic notation is used to represent a Strict Upper bound time complexity

Big Oh

Small Oh

Omega

Small Omega

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If for an algorithm time complexity is given by O(1) then the complexity of it is ____________

Constant

Polynomial

Exponential

None of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of following code:

for i in range(1, n, 5):

print(i)

A. O(1)

B. O(n)

C. O(n^2)

D. O(log n)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?