Linear v Binary Search Algorithms

Linear v Binary Search Algorithms

10th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Linear and Binary Search Algorithms

Linear and Binary Search Algorithms

11th Grade

10 Qs

GCSE Computer Science 9-1: Sorting Algorithms

GCSE Computer Science 9-1: Sorting Algorithms

10th Grade - University

10 Qs

Merge Sort

Merge Sort

10th Grade

14 Qs

2.1.3 Searching Algorithms

2.1.3 Searching Algorithms

10th - 11th Grade

12 Qs

Sorting Algorithms

Sorting Algorithms

9th - 10th Grade

11 Qs

Key Words

Key Words

10th Grade

10 Qs

NOCTI Computer Programming Quiz: Algorithms and Logic

NOCTI Computer Programming Quiz: Algorithms and Logic

10th Grade

10 Qs

Linear v Binary Search Algorithms

Linear v Binary Search Algorithms

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Geoffrey Clarion

Used 93+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following is pseudocode for which algorithm?


for each element in array

if element you’re looking for

return true

else

return false

linear

binary

bubble

merge

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following is pseudocode for which algorithm?


Repeat, starting at the first element:

If the first element is what you’re looking for (the target), stop.

Otherwise, move to the next element.

linear

binary

bubble

merge

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following is pseudocode for which algorithm?


look at middle of array

if element you’re looking for

return true

else if element is to left

search left half of array

else if element is to right

search right half of array

else

return false

linear

binary

bubble

merge

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which algorithm must start with an ordered list/array?

linear

binary

bubble

merge

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

Which search algorithm does this represent?

linear

binary

bubble

merge

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

"Look for lost item" is a(n)

process

decision

terminator

data item

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

In computer science, an algorithm must be

Finite

Precise

Well-defined

Unambiguous

8.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Pseudo-code is written for

computer to execute

humans to read

9.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which algorithm is more likely to run longer in a search of a list of names?

Linear

Binary