8.2 · Lesson 2 of 4

Arrays and loops

Syllabus 8.2.2Syllabus 8.2.3

What this lesson covers

  • Use variables as array indexes
  • Read and write array values using iteration, including nested loops

Key vocabulary

Iteration
Repeating a section of code using a loop.
FOR loop
A count-controlled loop, ideal for processing every element of an array.
Running total
A variable that has each value added to it as a loop runs.

Check your learning

  • Quick check: 4 questions
  • Key vocabulary test: 3 terms
  • Activity 1: Trace the code · 6 questions
  • Activity 2: Fill the gap · 6 questions
  • Activity 3: Arrays and loops quiz · 8 questions
Loading Bits of Bytes…