AP CSP Linear Search

AP CSP Linear Search

12th Grade

8 Qs

quiz-placeholder

Similar activities

Linear Data

Linear Data

12th Grade

10 Qs

Searching Technique -Linear Search Quiz1

Searching Technique -Linear Search Quiz1

12th Grade

10 Qs

Year 9 Home learning

Year 9 Home learning

10th - 12th Grade

12 Qs

Linear Search

Linear Search

12th Grade

5 Qs

Understanding Linear Search Algorithm

Understanding Linear Search Algorithm

12th Grade

11 Qs

Linear Search Algorithm

Linear Search Algorithm

10th - 12th Grade

5 Qs

CSF U2 Algorithms p1

CSF U2 Algorithms p1

9th - 12th Grade

10 Qs

Linear Search

Linear Search

10th - 12th Grade

8 Qs

AP CSP Linear Search

AP CSP Linear Search

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a type of search algorithm?

Linear search

Order search

Search engine

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

On what type of data can a linear search be performed?

On text

On numbers

Both of these

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Using a linear search, how many comparisons will it take to find the value 7 in the list [4, 1, 8, 7, 10, 28]?

2

3

4

5

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Using a linear search, how many comparisons will it take to find if the value 37 is in the list [4, 1, 8, 7, 10, 28]?

1

3

5

6

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
A Linear search algorithm requires data to be ordered.
True
False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What is an advantage of the Linear search algorithm?
Performs well with small sized data sets
Can be used on data sets with more than a million elements
Is complicated to code

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a disadvantage of the Linear search algorithm?
It will only work on a sorted data set
May be too slow to process large data sets

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will happen in a Linear search algorithm if the search item is not in the list?

It continues to search in an infinite loop.

A message "Item not found" is returned