Remember: A guessing game stores a secret and a guess, compares them with if, and loops.
Questions
1
The secret is seven. Which guess gets the message too high?
a guess of sevena guess of fivea guess of eight
2
Which one asks the player for a guess?
📥one equals sign⚖️two equals signs⌨️input
3
The secret is seven. Which guess wins?
a guess of sevena guess of threea guess of five
4
Which one stores a value in a name?
⚖️two equals signs📥one equals sign🔀if, elif and else
5
Which one chooses between paths?
🔁a loop🔀if, elif and else📥one equals sign
6
Which one repeats the check until the player wins?
🔁a loop📥one equals sign⌨️input
7
The secret is seven. Which guess gets the message too high?
a guess of foura guess of ninea guess of five
8
The secret is seven. Which guess gets the message too low?
a guess of eighta guess of sevena guess of three
9
The secret is seven. Does a guess of five win?
YesNo
10
The secret is seven. Which guess gets the message too low?
a guess of ninea guess of foura guess of eight
11
Which one asks whether two things are the same?
🔀if, elif and else⚖️two equals signs📥one equals sign
12
The secret is seven. Which guess gets the message too low?
a guess of fivea guess of sevena guess of nine
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 B
A small guessing game
1a guess of eight
2input
3a guess of seven
4one equals sign
5if, elif and else
6a loop
7a guess of nine
8a guess of three
9No
10a guess of four
11two equals signs
12a guess of five
Mark each answer, count the right ones and write the score on the sheet.