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
What is the purpose of a searching algorithm?
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 Wayground
15 questions
Uji Pemahaman Algoritma dan Pemrograman

Quiz
•
12th Grade
20 questions
Sorting algorithms (Y11)

Quiz
•
8th Grade - University
11 questions
44. Algorithms - Bubble Sort Algorithm Quiz

Quiz
•
9th - 12th Grade
13 questions
Microsoft Word 2016 Tables

Quiz
•
8th - 12th Grade
13 questions
Robust Programming

Quiz
•
11th - 12th Grade
15 questions
SLR5 | Algorithms

Quiz
•
12th Grade
20 questions
Kuis Dasar Algoritma

Quiz
•
8th Grade - University
15 questions
kiểm tra lớp 5

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade