Which search algorithm requires the dataset to be sorted before execution?
19.1 Algorithms Cambridge iA 9618

Quiz
•
Computers
•
12th Grade
•
Hard

Stephen Ling-Winston
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Binary search
Linear search
Bubble sort
Insertion sort
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a linear search in the worst case?
O(n)
O(log n)
O(n²)
O(1)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes binary search?
It repeatedly divides the search space in half until the target is found
It checks every element one by one
It sorts data before searching
It finds an element in constant time
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of binary search?
O(log n)
O(n)
O(n²)
O(1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm compares adjacent elements and swaps them if necessary?
Bubble sort
Insertion sort
Quick sort
Merge sort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm builds the sorted list one item at a time?
Insertion sort
Bubble sort
Selection sort
Heap sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of bubble sort?
O(n²)
O(n log n)
O(n)
O(1)
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Binary and Linear Search

Quiz
•
9th - 12th Grade
16 questions
Searching & Sorting Algorithms

Quiz
•
10th Grade - University
20 questions
2.1 Algorithms

Quiz
•
10th - 12th Grade
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
20 questions
Struktur Data

Quiz
•
9th - 12th Grade
20 questions
Algorithm questions

Quiz
•
12th Grade - University
16 questions
Sorting & Searching Algorithms

Quiz
•
12th Grade
15 questions
SLR5 | Algorithms

Quiz
•
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 Computers
17 questions
Chapter 12 - Doing the Right Thing

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

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

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