Search Header Logo
Linear Search (Two dimensional)

Linear Search (Two dimensional)

Assessment

Presentation

Computers

9th - 10th Grade

Hard

Created by

Calum Gordon

FREE Resource

14 Slides • 26 Questions

1

Linear Search (2-D)

Sequentially searching for an item in a 2-D list

media

2

media

3

media

4

Multiple Select

Question image

In this lesson I am going to learn to ... ?

1

Apply a linear search to a 2-D list on paper

2

Complete a linear search algorithm flowchart

3

Code a linear search for an item in a 2-D list

4

Compare linear searches of 1-D and 2-D lists

5

media

6

Multiple Choice

A database record contains .....

1

all the data on a single person or thing

2

one piece of data on a person or thing

3

all the data on multiple persons or things

7

Multiple Choice

A database is ______

1

An organised collection of records

2

A table of data

3

A single field of data

8

Multiple Select

Choose all the tasks normally available in a database ...

1

Sort records

2

Search records

3

Update records

4

Delete records

5

Add new records

9

media

10

Multiple Choice

Which is the best description of a linear search algorithm?

1

Starts looking for the item at beginning of list until either finds it or reaches end of list

2

Looks through all items in list looking for the search item

3

Looks in random locations of the list for the search item

11

media

12

Multiple Choice

Question image

How would you access the record for "Forest"?

1

studentData[5]

2

studentData[5][1]

3

studentData[6]

4

studentData[6][2]

13

Multiple Choice

Question image

What is the index position of "Cooper"?

1

studentData[2][1]

2

studentData[1][2]

3

studentData[3][2]

4

studentData[2][4]

14

Multiple Choice

Question image

Whose record is at studentData[2]?

1

Cooper

2

Bennett

3

Davies

4

Forest

15

Fill in the Blank

Question image

What data is at index position studentData[4][3]?

16

media

17

media

18

media

19

Multiple Select

Question image

What are the differences between this 2-D linear search and the 1-D linear search?

1

Looks in list[index][1] rather than list[index]

2

Returns sublist rather than index position if found

3

Returns empty list rather than -1 if not found

4

index is incremented by 4 instead of by 1

5

Searches all records regardless of if found

20

media

21

media

22

media

23

Multiple Select

What are the three main types of test data that should be used to test an algorithm?

1

expected data

2

boundary data

3

exceptional data

4

numeric data

5

string data

24

media

25

Fill in the Blank

Question image

Identify the name of a subprogram ....

26

Fill in the Blank

Question image

Identify the line number of a subprogram call

27

Fill in the Blank

Question image

Identify a line number where repetition starts....

28

Fill in the Blank

Question image

Identify a line number with a call to a built-in subprogram

29

Fill in the Blank

Question image

Identify a line number with a call to a user-defined subprogram

30

Fill in the Blank

Question image

Identify a line number with a Boolean condition

31

Fill in the Blank

Question image

Identify a line number where a data structure is indexed

32

Fill in the Blank

Question image

Identify a line number containing a string method

33

Fill in the Blank

Question image

Identify a line number containing a selection statement

34

Fill in the Blank

Question image

Identify a line number where a global variable is initialised

35

Fill in the Blank

Question image

Identify a line number where a local variable is initialised

36

Fill in the Blank

Question image

Identify a line number containing an inequality operator

37

media

38

Multiple Select

Question image

In this lesson I have learned to ...

1

Understand the structure of a database record

2

Perform a linear search on a 2-D data structure

39

Open Ended

Question image

Thinking Hard

Transform your work from this lesson into a set of step by step instructions.

(press Shift+Enter to take a new line ...)

40

Poll

Question image

How much of this lesson have you understood?

None of it

Some of it

Most of it

All of it

Linear Search (2-D)

Sequentially searching for an item in a 2-D list

media

Show answer

Auto Play

Slide 1 / 40

SLIDE