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
14 questions
Knee Muscles

Quiz
•
9th - 12th Grade
10 questions
Weekly Quiz 1

Quiz
•
4th Grade - Professio...
11 questions
Programming Fundamentals Review

Quiz
•
9th - 12th Grade
8 questions
Year 8: Homework 7: Sorting and Searching Algorithms Quiz

Quiz
•
11th - 12th Grade
9 questions
Thinking and Language; Mod 27

Quiz
•
10th - 12th Grade
10 questions
Sorting Algorithms Quiz

Quiz
•
9th - 12th Grade
10 questions
SOAL INFORMATIKA 1

Quiz
•
9th - 12th Grade
12 questions
Sorting Laundry

Quiz
•
KG - 12th Grade
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