An indefinite loop is used when the number of times a loop will need to be repeated is not known in advance
Oops!
Check
Okay!
Check
15
What are the types of loops?
definite and indefinite
Oops!
Check
Okay!
Check
15
When do you use a definite loop?
A definite loop is used when you know in advance how often the instructions in the body of the loop are to be repeated
Oops!
Check
Okay!
Check
monster
Reset all scores!
Oops!
gift
Win 25 points!
Okay!
gift
Win 25 points!
Okay!
thief
Give points!
5
10
15
20
25
15
When do you use a definite iteration?
This is used when the number of iterations, or turns of the loop, is known in advance
Oops!
Check
Okay!
Check
baam
Lose 10 points!
Oops!
shark
Other team loses 15 points!
Okay!
rocket
Go to first place!
Okay!
lifesaver
Give 20 points!
Oops!
15
What is selection?
The selection construct is used to create a branch in a program. The computer selects which branch to follow based on the outcome of a condition, using an IF…TH
Oops!
Check
Okay!
Check
15
What are loops?
Loops are used to make a computer repeat a set of instructions more than once.