Search Header Logo
A07-01-Arrays, Tuples and Records

A07-01-Arrays, Tuples and Records

Assessment

Presentation

Computers

12th Grade

Hard

Created by

Keith Gage

FREE Resource

48 Slides • 13 Questions

1

ALEVEL-07-01-Arrays, Tuples and Records

by Keith Gage

2

media

3

media

4

Open Ended

What is an array?

5

Open Ended

What is an tuple?

6

Open Ended

What is an reco?

7

media

8

media

9

media

10

Fill in the Blanks

Type answer...

11

Fill in the Blanks

Type answer...

12

Fill in the Blanks

Type answer...

13

​Task

  • ​Write pseudocode to store two variables; name1 stores Joe and name2 stores Jim

  • ​Create an array called Name

  • ​The first three elements of the array should be Moe, Mac and Mic

  • ​Create a loop to print out the elements of the array

  • ​Finish off by printing the first two variables that you created

media

14

media

15

​Task

Complete the truth table for the program that you created on the previous task.

​Each row represents another line or iteration through the code.

media

16

media

17

Task

Declare a variable called total

​Create a loop with the variable i that runs 3 times

Within the loop, add to an array mark which is input by the user

Add to the total variable, whatever is in mark array that for the position that we just added to.

After the loop, create an avg variable that is an average of the total variable and the number of times the loop ran for

​Print the avg variable

​Print the third element of the array mark

media

18

media

19

​Task

Complete the truth table for the inputs 60, 70 and 80.

media

20

media

21

media

22

media

23

media

24

media

25

Task

Complete Task 1 in Worksheet 1

26

Two Dimensional Arrays​

27

​Task

Draw out a one dimensional array of 4 elements

​Draw out a two dimensional array in a 2x2

28

​Task

Write pseudocode that writes the letter 'x' in to a two dimensional array using two loops

​In row 0, column 1, write the letter 'y'

media

29

media

30

media

31

media

32

media

33

Task

Complete the truth table​

media

34

media

35

media

36

media

37

media

38

media

39

​Task

​Worksheet 1

​Task 2

40

​Multi-dimensional Arrays and Tuples

41

media

42

Immutable​

Elements of the tuple cannot ba changed

43

media

44

media

45

media

46

​Records

47

media

48

media

49

media

50

media

51

​Task

​Worksheet 1

​Task 3

52

media

53

Multiple Select

Font size (static)

1

Array

2

Tuple

3

Record

4

None of these

54

Multiple Select

Number of items may grow and shrink

1

Array

2

Tuple

3

Record

4

None of these

55

Multiple Select

All items must be of the same data type

1

Array

2

Tuple

3

Record

4

None of these

56

Multiple Select

Fixed number of items

1

Array

2

Tuple

3

Record

4

None of these

5

All of these

57

Multiple Select

Can have more than one dimension

1

Array

2

Tuple

3

Record

4

None of these

5

All of these

58

Multiple Select

Items may be different data types

1

Array

2

Tuple

3

Record

4

None of these

5

All of these

59

Multiple Select

Can hold an item of the other two structures

1

Array

2

Tuple

3

Record

4

None of these

5

All of these

60

media

61

media

ALEVEL-07-01-Arrays, Tuples and Records

by Keith Gage

Show answer

Auto Play

Slide 1 / 61

SLIDE