2.2.8

Controlling Program Flow - Iteration

Test yourself

Iteration

Iteration allows a group of statements to be repeated multiple times. Iteration statements are often called loops.

Illustrative background for Indefinite iterationIllustrative background for Indefinite iteration ?? "content

Indefinite iteration

  • A block of code will repeat while a specified condition is true.
Illustrative background for Definite iterationIllustrative background for Definite iteration ?? "content

Definite iteration

  • A block of code will repeat a known number of times.
Illustrative background for Flow diagramIllustrative background for Flow diagram ?? "content

Flow diagram

  • A flow diagram for iteration uses the diamond shape.

Jump to other topics

1Computer Systems

1.1Data Representation

1.2Data Transmission

1.3Hardware

1.4Software

1.5The Internet & its Uses

1.6Cyber Security

1.7Automated & Emerging Technologies

2Algorithms, Programming & Logic

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium