8.2 · Lesson 1 of 4

One-dimensional arrays

Syllabus 8.2.1Syllabus 8.2.2

What this lesson covers

  • Declare and use 1D and 2D arrays
  • Use variables as array indexes

Key vocabulary

Array
A data structure that stores several items of the same data type under one identifier.
Element
A single item stored in an array.
Index
The position of an element in an array.
Lower bound
The first index of an array: usually 1 in Cambridge pseudocode, 0 in Python.
Upper bound
The last index of an array.
DECLARE
Sets up an array with its name, size and data type, e.g. DECLARE Ages : ARRAY[1:30] OF INTEGER.

Check your learning

  • Quick check: 4 questions
  • Key vocabulary test: 6 terms
  • Activity 1: What's the output? · 6 questions
  • Activity 2: Declaring arrays · 6 questions
  • Activity 3: 1D arrays quiz · 8 questions
Loading Bits of Bytes…