
Algorithm Time Complexity Quiz
Authored by Soham Soham
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which notation is used to represent the upper bound of an algorithm's time complexity?
Θ (Theta)
Ω (Omega)
O (Big-O)
Σ (Sigma)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which time complexity represents a constant-time algorithm?
O(n)
O(n log n)
O(1)
O(n²)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of linear search?
O(n)
O(n²)
O(log n)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If an algorithm has time complexity O(2ⁿ), how does its execution time grow as input size increases?
Linearly
Logarithmically
Exponentially
Constant
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a nested loop runs n times in the outer loop and n times in the inner loop, what is the time complexity?
O(1)
O(n)
O(n²)
O(log n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare an integer array of size 5 in C++?
int arr[5];
array arr[5];
int arr();
int arr{};
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign the value 10 to the first element of an array arr in C++?
arr[0] = 10;
arr = {10};
arr[1] == 10;
arr(0) = 10;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Aula 03
Quiz
•
University
15 questions
Léxico general
Quiz
•
University
10 questions
DERECHO PENAL I
Quiz
•
University
14 questions
NDS - Execução 09 - Fazenda Pública
Quiz
•
University
10 questions
Mobile Computing quiz2
Quiz
•
University
10 questions
GESP 1101 Unidad I Grupo 2
Quiz
•
University
10 questions
Cont. Nacional - Pancadaria 06
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University