
Search and Sort Algorithms

Quiz
•
Computers
•
9th Grade
•
Hard
Ms O'Grady
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of Linear Search?
O(log n)
O(n)
O(n^2)
O(1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain how Binary Search works.
Binary Search has a time complexity of O(n^2)
Binary Search is a linear search algorithm
Binary Search can only be applied to sorted arrays
Binary Search is an efficient algorithm with a time complexity of O(log n) where n is the number of elements in the array.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does Bubble Sort algorithm work?
Bubble Sort algorithm compares each pair of adjacent items and swaps them if they are in the correct order.
Bubble Sort algorithm compares each pair of adjacent items and swaps them if they are in the wrong order.
Bubble Sort algorithm sorts the array by dividing it into subarrays and merging them.
Bubble Sort algorithm randomly shuffles the elements in the array.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of Selection Sort?
O(n^2)
O(nlogn)
O(1)
O(n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe how Insertion Sort algorithm functions.
Insertion Sort algorithm functions by removing the smallest element from the array
Insertion Sort algorithm functions by randomly shuffling the elements in the array
Insertion Sort algorithm functions by comparing the first and last elements of the array
Insertion Sort algorithm functions by repeatedly taking an element from the unsorted part of the array and inserting it into its correct position in the sorted part of the array.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is Linear Search preferred over Binary Search?
When the list is not sorted or sorting the list is costly.
When the list is already sorted
When the search is for the last element in the list
When the list is very small
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between Bubble Sort and Selection Sort?
Bubble Sort sorts elements in descending order, while Selection Sort sorts in ascending order.
The main difference is in the way elements are compared and swapped: Bubble Sort compares adjacent elements, while Selection Sort selects the smallest element.
Bubble Sort always performs better than Selection Sort in terms of efficiency.
Bubble Sort has a time complexity of O(n log n), while Selection Sort has a time complexity of O(n^2).
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Struktur Data Quiz

Quiz
•
9th Grade
9 questions
ASK tingkatan 3 algoritma

Quiz
•
7th - 9th Grade
10 questions
Berfikir Komputesional

Quiz
•
9th - 12th Grade
12 questions
Microsoft Programs

Quiz
•
9th - 12th Grade
12 questions
Sorting Methods actual quiz

Quiz
•
9th - 12th Grade
10 questions
AP Computer Science Principles Unit 3 Review

Quiz
•
9th - 12th Grade
11 questions
2.1 Algorithms

Quiz
•
9th Grade
10 questions
BAB 3 - ALGORITMA

Quiz
•
9th 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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

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

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

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

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

Interactive video
•
9th - 12th Grade