Which notation is used to represent the upper bound of an algorithm's time complexity?

Algorithm Time Complexity Quiz

Quiz
•
Other
•
University
•
Medium
Soham Soham
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Θ (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;
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Computational Thinking for Problem Solving

Quiz
•
University
15 questions
Data Structures Quiz

Quiz
•
University
12 questions
Searching Quiz

Quiz
•
University
15 questions
Coding Golf Event 2

Quiz
•
University
10 questions
Java set3

Quiz
•
University
10 questions
Algorithm Quizz 2

Quiz
•
University
15 questions
Data Structure & Algorithm

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade