That Blue Square Thing

AQA Computer Science GCSE

This page is up to date for the AQA 8525 syllabus for exams from 2022.

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: