Sequence & Selection Flashcards

0
Q

What is meant by selection?

A

The path through a program is decided by using a condition to decide which one of a set of alternative paths to follow based on the result.

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

What is meant by a sequence?

A

Sequence of instructions to be carried out in the order they are written.

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

What is meant by ‘if them else’?

A

Not all conditions are straightforward and you have to combine more than one condition to get the outcome we require.

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

What is meant by a ‘nested loop’?

A

For example an if them else loop is nested inside another if then else loop.

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

What is meant by ‘case’?

A

Takes various paths based on the value input.

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

When is the case command often used?

A

In game controls when the action depends upon the choice of input button.

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