That Blue Square Thing

AQA Computer Science GCSE

July 2019: the AQA CompSci area is almost complete. Most of the content for units 3-6 is now up and there's quite a lot of Unit 7 material. There's still some work to do, particularly on Paper 1 units, but it's getting there.

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 or REPEAT–UNTIL loops

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

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