Search Header Logo
10C Arrays

10C Arrays

Assessment

Presentation

Computers

10th Grade

Easy

Created by

Roy Duguid

Used 16+ times

FREE Resource

34 Slides • 7 Questions

1

​Do Now

​ 1. Log in

  1. go to paper 1 programming

  2. go to arrays 2

  3. complete Do Now

2

​Do Now answers

3

​Big Question:

How can arrays be used to store and manipulate data?

  • ​How are elements stored and accessed in a one-dimensional array?

  • What are the benefits of using arrays for storing multiple elements?

  • How are two-dimensional arrays structured and utilized?

​Key words: array, element, index, One-dimensional array, Multi-dimensional array

4

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

5

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

​0

1

2

3

4

5

6

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

​0

1

2

3

4

5

media

7

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

"Eva"

​0

1

2

3

4

5

6

8

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

"Eva"

​0

1

2

3

4

5

6

media

9

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

"Eva"

​0

1

2

3

4

5

6

10

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Deniz",

"Donny"

"Eva"

​0

1

2

3

4

5

6

media

11

​Making a 1D list

​"Alexandra"

"Amir",

"Ana",

"Daria",

"Donny"

"Eva"

​0

1

2

3

4

5

media

12

media

​Knowledge organiser

13

Questions ahead...

14

Multiple Choice

What term is used to describe an individual position of an element in an array?

1

Index

2

Pointer

3

Variable

4

List

15

Fill in the Blank

16

Multiple Choice

friends = ["Bob", "Sally", "Jane"]

print(friends[?])

I want to add “Tim” to the list, what do I do?

1

Append.friends(pop[“Tim’])

2

append.friends(“Tim”)

3

friends.append(“Tim”)

17

Multiple Choice

The following array is created in a program: " DIREWOLVES = ["Nymeria","Shaggy Dog","Ghost","Lady","Grey Wind","Summer"]


What is the item stored in DIREWOLVES [2] ?

1

"Shaggy Dog"

2

"Ghost"

18

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

19

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

20

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

media

21

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

array = [ [x, x, x] ,
[x, x, x] ,
[x, x, x] ]

media

22

Turn and talk

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

media
media

23

Turn and talk

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

media
media

​15

24

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

media

​30

25

​Fanta

​10

​11

​12

​Making a 2D list

​0

1

2

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

​1

​2

​3

26

​Fanta

​10

​11

​12

​Making a 2D list

​0

1

2

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

​1

​2

​3

media

27

​Fanta

​10

​11

​12

​Making a 2D list

​0

1

2

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

​1

​2

​3

28

​Fanta

​10

​11

​12

​Making a 2D list

​0

1

2

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

​1

​2

​3

media

29

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

​18

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

30

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

20

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

31

​Making a 2D list

​May

​June

​July

Coca-cola

​25

​20

​15

​Pepsi

​21

20

​17

​Irn-Bru

​19

​24

​30

​0

1

2

​0

​1

​2

media

32

Questions ahead...

33

Multiple Choice

Question image

A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames

What data is held in stored in CUSTOMER [0] [2]?

1

1004

2

Smith

3

Amrit

4

1003

34

Multiple Choice

Question image

A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames


Where in the array is the data item "Kahn" stored?

1

(2,3)

2

(4,1)

3

(2,2)

4

(3,3)

35

Multiple Choice

Question image

A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames


What data is held in stored in CUSTOMER (2,0)?

1

Amrit

2

Kahn

3

Taylor

4

1003

36

media

37

media

38

media

39

media

40

media

41

​Go to class notebook

Complete Activity 1

media

​Do Now

​ 1. Log in

  1. go to paper 1 programming

  2. go to arrays 2

  3. complete Do Now

Show answer

Auto Play

Slide 1 / 41

SLIDE