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 Wayground
15 questions
Arrays

Quiz
•
University
15 questions
AlgoWhiz Quiz

Quiz
•
University
15 questions
Quiz on Object Oriented Programming and Java

Quiz
•
University
15 questions
Data Structures (Arrays)

Quiz
•
University
10 questions
QUIZ3:-DATA STRUCTURE

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
10 questions
K-Nearest Neighbors Quiz

Quiz
•
University
10 questions
c set 3

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade