Binary and linear search

Binary and linear search

10th Grade

33 Qs

quiz-placeholder

Similar activities

CompuScholar Chapter 5

CompuScholar Chapter 5

9th - 12th Grade

28 Qs

APCSP semester 1 final review

APCSP semester 1 final review

9th - 12th Grade

31 Qs

Year 11 Revision: Unit 2.1-Algorithms

Year 11 Revision: Unit 2.1-Algorithms

10th Grade

31 Qs

WJEC 2.2 Algorithms and Programming Constructs - Algorithms

WJEC 2.2 Algorithms and Programming Constructs - Algorithms

9th - 10th Grade

38 Qs

Day 1 Review Algorithms and AI

Day 1 Review Algorithms and AI

9th - 12th Grade

31 Qs

Assessment Term 2.2 - Y9 U4 Python Search algorithms

Assessment Term 2.2 - Y9 U4 Python Search algorithms

7th - 12th Grade

30 Qs

CS 1: Big Idea #3 Practice

CS 1: Big Idea #3 Practice

9th Grade - University

32 Qs

Vocabulary Quiz Units 5,6, and 7.

Vocabulary Quiz Units 5,6, and 7.

9th - 12th Grade

31 Qs

Binary and linear search

Binary and linear search

Assessment

Quiz

Computers

10th Grade

Easy

Created by

M Ellis

Used 2+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a linear search?

A method where each item in the list is checked in order from the start until the item is found.

A method where the list is split into two each time a comparison is made.

A method where items are sorted in descending order.

A method where only the last item is checked.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a binary search?

A method where each item is checked in order from the start.

A method where an ordered list is split into two each time a comparison is made.

A method where items are randomly checked.

A method where only the first item is checked.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a necessary condition for performing a binary search?

The list needs to be unordered.

The list needs to be in order.

The list needs to be in reverse order.

The list needs to be random.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do if the middle value is the one you are looking for in a binary search?

Continue searching.

Celebrate, and stop.

Take the list to the left.

Take the list to the right.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search, what action is taken if the middle value is larger than the one you are looking for?

Take the list to the right of the middle value.

Take the list to the left of the middle value.

Stop the search.

Reverse the list.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the next step if the middle value is smaller than the one you are looking for in a binary search?

Take the list to the left of the middle value.

Take the list to the right of the middle value.

Stop the search.

Reverse the list.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the middle value in the list when performing a binary search for the number 9?

9

12

16

18

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?