
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
9 questions
"Searching " in Python

Quiz
•
12th Grade
10 questions
Technical Terms - Internet (A-Z) - OSPF

Quiz
•
12th Grade
15 questions
014_Key Exchange - CompTIA Security+ SY0-701 - 1.4

Quiz
•
12th Grade - University
15 questions
Code.org - Unit 6 Review

Quiz
•
9th - 12th Grade
15 questions
Fundamentals of Data Structures

Quiz
•
12th Grade
16 questions
Data Structure and Algorithms

Quiz
•
12th Grade
10 questions
Data Structure and Algorithm Quiz

Quiz
•
12th Grade
11 questions
Understanding Algorithm Complexity and Big O Notation (video)

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade