Search Header Logo
Unit 1 - 5.Linear search algorithms

Unit 1 - 5.Linear search algorithms

Assessment

Presentation

Computers

9th Grade

Practice Problem

Medium

Created by

Ala Jaber

Used 5+ times

FREE Resource

6 Slides • 20 Questions

1

media

2

Open Ended

Why is it important to understand how search algorithms work in our daily lives?

3

media

4

Multiple Choice

Which of these is an example of using a search algorithm in everyday life?

1

Writing an essay without references

2

Turning off your smartphone

3

Playing a song on the radio without choosing it

4

Browsing for gift ideas on an online shop

5

Multiple Choice

A linear search compares each value in a list one at a time until it finds a match.

1

True

2

False

6

Multiple Choice

What does a linear search do?



1

a) It searches for a value by dividing the list into halves

2

b) It checks each item in a list one by one until it finds a match

3

c) It only works if the list is already sorted

4

d) It jumps directly to the middle of the list

7

Multiple Choice

A linear search is also called a serial search.

1

True

2

False

8

Fill in the Blank

A linear search algorithm checks each item in a ___ until it finds a match or reaches the end.

9

Multiple Choice

Which of the following is an example of a linear search in real life?

1

Looking up a friend's name in a contact list one by one

2

Using a search engine to find a website instantly

3

Sorting a list of numbers from smallest to largest

4

Encrypting a message for privacy

10

media

11

Multiple Choice

What does a linear search do?

1

a) It searches for a value by dividing the list into halves

2

b) It only works if the list is already sorted

3

c) It checks each item in a list one by one until it finds a match

4

d) It jumps directly to the middle of the list

12

Multiple Choice

Question image

Based on the pseudocode provided, what would happen if the user's film choice is not in the list?

1

The program would display an error message.

2

The program would keep looping forever.

3

The program would finish without displaying a film name.

4

The program would restart from the beginning.

13

Multiple Choice

A linear search is also called a serial search.

1

True

2

False

14

media

15

Multiple Choice

Why is pseudocode useful when designing algorithms?

1

a) It ensures the program will always run faster

2

b) It can be directly executed by the computer

3

c) It helps us write logical steps that can later be translated into code

4

d) It eliminates the need to write Python code

16

Multiple Choice

In the Python linear search example, the computer keeps guessing until it finds the correct answer.

1

a) True

2

b) False

17

media

18

Multiple Select

Which of the following are important points to consider when creating a simple guessing game using Python, according to the lesson?

1

The game should use positive numbers only

2

The game should ask if its guess is correct

3

The game should use decimal points for age

4

The game should guess again if it is wrong

19

Multiple Choice

Which of the following is an important point for the guessing game?

1

a) The game must use decimal points for age

2

b) The game needs to ask if its guess is correct

3

c) The game must include lots of help text

4

d) The game should collect personal information

20

Multiple Choice

In the guessing game, using decimal points for the age is required.

1

True

2

False

21

media

22

Multiple Choice

Question image

In the Python linear search code, what does the line choice = choice + 1 do?

1

a) It resets the guess back to 0

2

b) It increases the guess number by 1

3

c) It asks the user for input

4

d) It ends the program

23

Multiple Choice

Question image

The program begins by asking “Are you 10?”

1

True

2

False

24

Open Ended

What questions do you still have about linear search algorithms, or is there anything you would like to know more about?

25

Drag and Drop

Looks for a specific value in a list or dataset until a match is found​ ​
Compares each value one by one in sequence until a match or the end of the list​ ​
Logical steps that can later be translated into actual code​
The game must ask if its guess is correct and guess again if wrong

Using decimal points for age or collecting personal information​
Drag these tiles and drop them in the correct blank above
Search algorithm
Linear search
Pseudocode
Important point in guessing game
Not required in guessing game

26

Multiple Choice

Python code (choice = choice + 1) means Increases the guess number by 1 each time

1

True

2

False

media

Show answer

Auto Play

Slide 1 / 26

SLIDE