
Design and Analysis of Algorithms Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
meghana pandita
Used 5+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
TIME COMPLEXITY QUIZ CODING CLUB

Quiz
•
9th - 12th Grade
15 questions
AP CSP Algorithms & Programming (College Board Style)

Quiz
•
9th - 12th Grade
10 questions
Encryption - AQA A Level Computer Science

Quiz
•
11th - 12th Grade
9 questions
AP CPS - Algorithmic Complexity

Quiz
•
9th - 12th Grade
11 questions
40. Algorithm - Algorithm Efficiency Quiz

Quiz
•
9th - 12th Grade
10 questions
Sorting Algorithms

Quiz
•
9th - 12th Grade
10 questions
Dastan - Part 3

Quiz
•
12th Grade
11 questions
Time complexity of sorting algorithms

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade