What is the time complexity of a linear search algorithm?

Algorithm Time Complexity Quiz

Quiz
•
Engineering
•
University
•
Hard
Dr. Vasanthi
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O(n log n)
O(n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which asymptotic notation gives the upper bound of an algorithm's time complexity?
Big-O
Big-Ω
Big-Θ
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of a binary search algorithm?
O(n)
O(log n)
O(n log n)
O(1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which algorithm has a time complexity of O(n^2)?
Bubble sort
Selection sort
Insertion sort
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best-case time complexity of a heap sort algorithm?
O(n)
O(log n)
O(n log n)
O(1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used in a heap sort algorithm?
Array
Linked list
Stack
Queue
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a naive string-matching algorithm?
O(n)
O(n^2)
O(n log n)
O(1)
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Location Analysis

Quiz
•
University
20 questions
Algorithm Time Complexity Quiz

Quiz
•
University
20 questions
DAA 4th Sem

Quiz
•
University
25 questions
Qualifier Set B

Quiz
•
University
21 questions
Mastering Data Structures

Quiz
•
University
20 questions
NLP_B1_19.09

Quiz
•
University
20 questions
Natural Language Processing CT-2

Quiz
•
University
20 questions
UPN Sesión 14 - Retroalimentación

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