YEAR 1 CO2 WEEK 3 + 4 SELECTION AND ITERATION Flashcards

1
Q

Define sequence.

A

Type of algorithm follows sequence of instructions in order.

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

Define selection.

A

To execute selected piece of code if condition is satisfied or true (also known as branching.)

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

Define iteration.

A

Repeatedly executed selected code until condition is satisfied.
Can be count controlled where programmer knows in advance how many times they want code to repeat.
Condition controlled loops where programmer not know in advance how many times they want code to repeat.

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