Iteration (AQA GCSE Computer Science): Flashcards

📚Flashcards
Iteration
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

13 cards from this deck

Show

Iteration definition

Programming concept that repeats sections of code multiple times

Another term for iteration

Looping

Definite loops

Loops with exact known number of repetitions

Indefinite loops

Loops repeating based on condition, count unknown in advance

Keyword for definite loops

FOR

FOR loop counter variable behaviour

Automatically increments by 1 each iteration

When WHILE loop checks condition

Before running the code inside

When REPEAT UNTIL checks condition

After running the code

WHILE loop minimum executions

Might not execute at all if condition false from start

REPEAT UNTIL minimum executions

Always runs at least once

Nesting definition

Loops inside other loops or combined with selection

Nested loop total iterations

Multiply iterations: 4imes3=124 imes 3 = 12 operations

Combining loops with selection

IF statements inside loops for decisions each iteration

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.