Programming constructs Flashcards
(6 cards)
1
Q
Sequence
A
A series of steps or instructions that follow one after the other
2
Q
Iteration
A
Using loops (repeated instructions) to avoid having to repeat unnecessary code. Includes for loops, while loops and do while loops.
3
Q
Selection
A
Choosing whether code should run or not based on a condition (logical expression that is true or false), for example an if statement.
4
Q
Functions
A
Used to define a sequence of code by a name, that can be called by other code. Use to avoid repeating code
5
Q
Variables
A
Containers that store (remember) data so that we can use it elsewhere.
6
Q
Modularisation
A
Reducing how complex a system is by breaking it up into units/modules