Unit 8 · Programming
8.2 Arrays
By the end of this section you should be able to
- 8.2.1 Declare and use 1D and 2D arrays
- 8.2.2 Use variables as array indexes
- 8.2.3 Read and write array values using iteration, including nested loops
Lessons
Key vocabulary
- Array
- A fixed-length data structure holding items of the same data type.
- Index
- The number that identifies the position of an element in an array.
- Element
- A single item stored in an array.
- 1D array
- An array that is a single list of elements.
- 2D array
- An array arranged as rows and columns, accessed with two indexes.
- Nested iteration
- A loop inside another loop, used to work through a 2D array.