What is the time complexity of a linear search algorithm?
Searching and Sorting Algorithms Quiz

Quiz
•
Other
•
11th Grade
•
Medium

Darragh OConnor
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O(n)
O(n^2)
O(log n)
O(1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which search algorithm requires the array to be sorted before performing the search?
Breadth First Search
Depth First Search
Binary Search
Linear Search
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of a binary search algorithm?
O(log n)
O(1)
O(n^2)
O(n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm repeatedly swaps adjacent elements if they are in the wrong order?
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a bubble sort algorithm in the worst case?
O(1)
O(log n)
O(n)
O(n^2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm repeatedly selects the minimum element from the unsorted part of the array and places it at the beginning?
Selection Sort
Merge Sort
Insertion Sort
Bubble Sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a selection sort algorithm in the worst case?
O(n^2)
O(n log n)
O(log n)
O(n)
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Sorting Algorithms Quiz

Quiz
•
11th Grade
9 questions
Fortnite

Quiz
•
KG - 12th Grade
10 questions
CLO Computing: Ethical, Legal & Environmental

Quiz
•
9th - 11th Grade
10 questions
GESTION DE RESIDUOS

Quiz
•
1st - 12th Grade
15 questions
Le Passé Composé

Quiz
•
9th - 12th Grade
9 questions
Binary search

Quiz
•
11th Grade
10 questions
Sorting Algorithms Quiz

Quiz
•
9th - 12th Grade
14 questions
Knee Muscles

Quiz
•
9th - 12th Grade
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
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

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

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University