C++ Quiz 5: Searching and Sorting Algorithms

Quiz
•
Computers
•
7th - 12th Grade
•
Medium
Jerry Xiao
Used 147+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Linear search algorithm:
Scans each index until finding a matching value
Repeatedly dividing in half the array until found
Bubble sorting technique
None of them
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Linear Search works when the array is?
Sorted
Unsorted
Both
None of the above
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A binary search algorithm can be best described as what?
A instant lookup method
Repeatedly dividing in half the array until found
Start at the head, move through the list until found
None of the above
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
When is Binary Search preferred over Linear Search?
Small Database
Sorted Database
Unsorted Database
None of the above
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Using binary search in this sorted array:
3 7 10 45 84 100 153 170
How many comparisons would it take to find number 170?
0 – 1
1 – 2
3 – 4
4 – 5
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The maximum comparisons needed in Binary Search on array of size 16 is:
16
8
4
5
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The maximum comparisons needed in Linear Search on array of size 32 is:
32
33
16
31
8.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Insertion sort is a sorting algorithm in which the elements are transferred one at a time to the right position
True
False
9.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the first change that insertion sort would make to this sequence?
“6 2 5 9”
6 9 5 2
5 9 6 2
9 5 2 6
2 6 5 9
Similar Resources on Wayground
11 questions
Understanding Linear Search Algorithm

Quiz
•
12th Grade
10 questions
Algorithms

Quiz
•
9th - 12th Grade
11 questions
Understanding Binary Search Algorithm

Quiz
•
12th Grade
10 questions
ASK Tingkatan 3 : Algoritma

Quiz
•
12th Grade
11 questions
Computational Thinking

Quiz
•
12th Grade
10 questions
Sorting and Searching Algorithms Quiz

Quiz
•
9th Grade
9 questions
AP CSP Big Idea 3 - Binary Search

Quiz
•
10th - 12th Grade
8 questions
2.3.1(f) Binary Search

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

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