Remember: A quiz asks a question, keeps the typed answer in a box, checks it with if else, and replies. A quiz that says yes to everything checks nothing.
Read and answer
Read the story, then answer.
Teo makes a quizTeo's little sister Ana loved space and asked him a hundred questions a day, so Teo decided to make a quiz. Ms. Ade said a quiz has three jobs: it asks, it checks, and it replies. Teo's first try was quick: ask the red planet question, then say Correct! Ana typed banana, and the quiz said Correct! That was no quiz at all, because it checked nothing. So Teo used an ask block, which waits and puts whatever Ana types into a box called answer. Then he used an if else block, like a fork in the road. If the answer is Mars, say Yes! Else, say Not quite. Now Ana typed banana for fun, and the quiz said Not quite. She tried silly answers for ten whole minutes, and the quiz never fell for one.
1
Ana types Mars. What does this quiz say?
Not quite.Yes!Nothing
2
Ana types Venus. What does this quiz say?
Yes!NothingNot quite.
3
A quiz has three jobs: it asks, it checks, and it .
replieswaitsrepeats
4
Teo's first quiz checked the answer.
TrueFalse
5
Which block does the checking job in a quiz?
🙋ask💬say🔀if else
6
Which block starts the quiz when it is clicked?
🏁the flag block🔀an if else block💬a say block
Match, order and fix
7
Join each block to its job.
1an ask block
2the answer box
3an if else block
4a say block
Aholds what was typed
Bshows a reply
Cshows a question and waits
Dpicks one path or the other
8
A quiz replies before an answer is typed.
TrueFalse
9
Ana plays Teo's quiz. Put what happens in order.
The quiz says Yes! or Not quite.
Ana types her answer
The answer goes into the box called answer
The quiz shows the question
The if else block looks in the box
10
Teo's first quiz says Correct! when Ana types banana. What is the mix-up to fix?
The flag block should come lastIt never checks the answer in the boxThe say block needs to be louder
11
A quiz has three jobs. Teo's quiz asks 3 questions, and each one asks, checks and replies. How many jobs is that in all?
639
12
Write the two replies for a quiz whose right answer is blue.
13
Draw a fork in the road. Label one road if the answer is Mars, and the other else.
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 A
Teo's space quiz
1Yes! The answer is Mars, so the if path runs and the quiz says Yes!
2Not quite. Venus is not Mars, so else runs, and the quiz says Not quite.
3replies A quiz asks, checks and replies.
4False It said Correct! to everything, even banana, so it checked nothing.
5if else Ask shows the question and say shows the reply. If else looks in the box and picks a path.
6the flag block The flag block starts the quiz.
71-C, 2-A, 3-D, 4-B Ask waits for the typing, the box keeps the answer, if else picks a path, and say shows the reply.
8False A quiz waits for the answer first, and then it looks inside the box and replies.
95, 2, 3, 1, 4 A quiz asks, keeps the answer in a box, checks it with if else, and then replies.
10It never checks the answer in the box A quiz that says yes to everything checks nothing. Teo added a box and an if else to check.
119 3 questions with 3 jobs each is 3 × 3 = 9 jobs.
12Your own words: a grown-up reads it.
Mark each answer, count the right ones and write the score on the sheet.