Team 1
0
Team 2
0
Teams
Name
Score
1
2
3
4
5
6
7
8
9
10
Loading
×
trap
No points!
Oops!
×
gift
Win 10 points!
Okay!
×
gift
Win 10 points!
Okay!
×
lifesaver
Give 20 points!
Oops!
15
×
What does the break keyword do in a loop?
It stops the loop completely, no matter what.
Oops!
Check
Okay!
Check
15
×
How many times will this while loop print "Yay!"?
3 times
Oops!
Check
Okay!
Check
15
×
What does the continue keyword do in a loop?
It skips the rest of the code for the current turn and goes to the next turn of the loop.
Oops!
Check
Okay!
Check
15
×
What numbers will this for loop print?
0, 1, 2
Oops!
Check
Okay!
Check
15
×
What happens if the condition for a while loop is always true?
The loop runs forever.
Oops!
Check
Okay!
Check
×
banana
Go to last place!
Oops!
×
star
Double points!
Okay!
×
shark
Other team loses 5 points!
Okay!
×
banana
Go to last place!
Oops!
15
×
What will this code print?
1 2
Oops!
Check
Okay!
Check
×
seesaw
Swap points!
Oops!
×
seesaw
Swap points!
Okay!
×
fairy
Take points!
5
10
15
20
25
×
lifesaver
Give 10 points!
Oops!
15
×
What is the most important thing to remember when writing a while loop?
You need to make sure the loop's condition will eventually become False
Oops!
Check
Okay!
Check
×
Restart
Review
Join for Free
;
Your experience on this site will be improved by allowing cookies.
Allow cookies