What is the purpose of a searching algorithm?
Sorting & Searching Algorithms

Quiz
•
Computers
•
12th Grade
•
Medium
B McCue
Used 5+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To write a novel
To play music
To cook a meal
To locate a specific item or value within a collection of data.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which searching algorithm has a time complexity of O(log n)?
Binary search
Linear search
Depth-first search
Breadth-first search
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: Linear search has a time complexity of ________.
O(n)
O(log n)
O(1)
O(n^2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of binary search?
O(n^2)
O(n)
O(1)
O(log n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm works by repeatedly swapping adjacent elements if they are in the wrong order?
Bubble Sort
Insertion Sort
Quick Sort
Merge Sort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: Bubble sort has a time complexity of ________.
O(nlogn)
O(n)
O(n^2)
O(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main advantage of merge sort over bubble sort?
Merge sort is less stable than bubble sort
Efficiency in terms of time complexity
Merge sort has a higher space complexity
Merge sort is easier to implement
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
UTS INFORMATIKA PILIHAN GANDA SEMESTER 1

Quiz
•
9th - 12th Grade
20 questions
iGCSE Computer Science: Problem Solving

Quiz
•
9th - 12th Grade
19 questions
Searching and sorting algorithm quiz

Quiz
•
12th Grade
15 questions
Algorithms

Quiz
•
3rd - 12th Grade
18 questions
NEW_SMP_Mls8_Quiz

Quiz
•
7th - 12th Grade
20 questions
Searching and Sorting

Quiz
•
10th - 12th Grade
20 questions
19.1 Algorithms Cambridge iA 9618

Quiz
•
12th Grade
11 questions
40. Algorithm - Algorithm Efficiency Quiz

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 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