
Search Algorithm Quiz

Quiz
•
Computers
•
9th Grade
•
Easy
David Dodwell-Bennett
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a linear search algorithm used for?
To sort items of data in ascending order
To find items of data
To delete items of data
To update items of data
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a linear search algorithm finds the desired item in the array?
It continues to search through the rest of the array
It deletes the item from the array
It stops and displays the location of the item
It restarts the search from the beginning of the array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a linear search algorithm do if the item is not found at the current index?
It stops the search
It moves to the previous item
It moves to the next item
It displays an error message
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For binary searching to be possible, what condition must the set of data meet?
The data must be in random order
The data must be in descending order
The data must be ordered
The data must contain numeric values only
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When performing a binary search and the search item is positioned lower than the middle, what part of the data set is searched next?
The first quarter of the set
The second half of the set
The first half of the set
The last quarter of the set
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the position of the middle item if the lower bound is at index 0 and the upper bound is at index 10?
4
5
6
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operation is performed to find the 'midPoint' in the binary search algorithm?
(first + last) * DIV 2
(first + last) / 2
(first + last) + DIV 2
(first + last) DIV 2
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
J277 Programming - Outputting Data

Quiz
•
9th - 11th Grade
10 questions
Database Fundamentals

Quiz
•
KG - University
12 questions
APCSA Unit 7

Quiz
•
9th - 12th Grade
15 questions
Data Compression

Quiz
•
9th - 12th Grade
10 questions
Fundamentals of Programming

Quiz
•
8th - 10th Grade
15 questions
Mechine Learning

Quiz
•
7th - 9th Grade
15 questions
soal sumatif 3 kelas 9

Quiz
•
9th Grade
14 questions
KS3 Abstraction

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade