What is the time complexity of a linear search algorithm?

Algorithm Time Complexity Quiz

Quiz
•
Other
•
University
•
Medium
Manjuparkavi Technology
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O(n)
O(log n)
O(n log n)
O(1)
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
Sorting Quiz

Quiz
•
University - Professi...
20 questions
CodeMavarick

Quiz
•
University
20 questions
CODE CRAFT

Quiz
•
University
20 questions
Mastering DSA Concepts

Quiz
•
University
20 questions
Lecture SIX.

Quiz
•
University
20 questions
Understanding Data Structures

Quiz
•
University
20 questions
DAA CSE 356 QUIZ 1

Quiz
•
University
17 questions
Python Review Module 16 - Searching Sorting Algorithm

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade