Tutorpip← About this lessonABCHide the answer keyDownload PDF
Coding · Ages 10+ · Set C
A small guessing game
Scan to mark
on screen
C
Name
Date
Start Finish
Goal: 15 min
Score/ 12
Remember: A guessing game stores a secret and a guess, compares them with if, and loops.

Questions

1
The secret is seven. Does a guess of seven win?
YesNo
2
Which one asks whether two things are the same?
🔀if, elif and else⚖️two equals signs📥one equals sign
3
Which one asks the player for a guess?
⚖️two equals signs📥one equals sign⌨️input
4
The secret is seven. Does a guess of nine win?
YesNo
5
The secret is seven. Which guess gets the message too high?
a guess of sevena guess of fivea guess of eight
6
Which one chooses between paths?
🔁a loop🔀if, elif and else📥one equals sign
7
The secret is seven. Does a guess of five win?
YesNo
8
Which one repeats the check until the player wins?
📥one equals sign🔁a loop⌨️input
9
The secret is seven. Which guess gets the message too low?
a guess of ninea guess of eighta guess of four
10
Which one stores a value in a name?
📥one equals sign🔀if, elif and else⚖️two equals signs
11
The secret is seven. Which guess gets the message too low?
a guess of sevena guess of threea guess of eight
12
The secret is seven. Which guess wins?
a guess of threea guess of foura guess of seven
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set C
A small guessing game
1Yes
2two equals signs
3input
4No
5a guess of eight
6if, elif and else
7No
8a loop
9a guess of four
10one equals sign
11a guess of three
12a guess of seven
Mark each answer, count the right ones and write the score on the sheet.