Search Header Logo

Design and Analysis of Algorithms Quiz

Authored by meghana pandita

Computers

12th Grade

Used 5+ times

Design and Analysis of Algorithms Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does time complexity measure in an algorithm?

Number of lines of code

Number of operations executed

Amount of memory used

Input size

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes space complexity?

The number of times an algorithm loops

The number of inputs an algorithm can handle

The amount of time an algorithm takes to run

The amount of memory an algorithm requires to execute

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of a binary search algorithm?

O(1)

O(n)

O(log n)

O(n^2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Θ(n) represent in asymptotic notation?

Average-case time complexity

Best-case time complexity

Tight bound on the time complexity

Worst-case time complexity

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the solution to the recurrence relation T(n) = 2T(n/2) + n?

O(2^n)

O(n log n)

O(n)

O(n^2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of merge sort in all cases?

O(n^2)

O(n)

O(n log n)

O(log n)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of quick sort?

O(n^2)

O(n log n)

O(log n)

O(n)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?