Control Flow in Imperative Languages

Candidates should be able to:

understand and use sequence in an algorithm
understand and use selection in an algorithm (IF and CASE statements)
understand and use iteration in an algorithm (FOR, WHILE and REPEAT loops).

What is sequence in an algorithm?

Sequence is a control structure where the computer executes the instructions in the order they are written. Each instruction cannot be executed until the previous instruction is completed.

Example: This pseudocode algorithm uses the sequential instructions INPUT and OUTPUT and will simply execute the instructions in sequence, starting at the top . . .

This content is restricted to subscribers