That Blue Square Thing

AQA Computer Science GCSE

September 2020: This page is the for the 2022 exam version of the AQA Computer Science GCSE course. This is for Year 10 teaching in September 2020.
These pages were copied over from the old syllabus and will get updated as I work through the new one. That means they won't always be totally up to date and I might miss something - check the updated date at the bottom of the page.

Programming Concepts - Repetition

Repetition allows blocks of code to be repeated. In programming languages it is implemented using loops.

There are two essential types of repetition:

  1. Definite Repetition - where a block of code is repeated a set number of times
  2. Indefinite Repetition - where a block of code is repeated until some condition is met

Each type has its own uses and problems associated with it.

Definite Repetition is always implemented using FOR loops. Indefiite repetition uses either WHILE, REPEAT–UNTIL or DO–WHILE loops

Repetition is also termed Iteration. Loops iterate when they operate.

I've put the syntax for each of these on different pages: