Programming constructs Flashcards

(6 cards)

1
Q

Sequence

A

A series of steps or instructions that follow one after the other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Iteration

A

Using loops (repeated instructions) to avoid having to repeat unnecessary code. Includes for loops, while loops and do while loops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Variables

A

Containers that store (remember) data so that we can use it elsewhere.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Modularisation

A

Reducing how complex a system is by breaking it up into units/modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly