A Scratch quiz game is a fun school project where you turn questions and answers into an interactive game. Students can choose a topic like animals, space, history, math facts, or classroom review. The project matters because it teaches planning, sequencing, logic, and debugging while making something classmates can play.
A good quiz game has clear questions, fair scoring, and friendly feedback for each answer.
Key Facts
- Plan first: write 5 questions, 5 correct answers, and feedback messages before coding.
- Use ask [question] and wait to let the player type an answer.
- Use if answer = correctAnswer then to check whether the player is right.
- Update the score with score = score + 1 after each correct answer.
- Use a variable named score to store points during the game.
- Show the final result with say join [Final score: ] score for 3 seconds.
Vocabulary
- Sprite
- A sprite is a character or object in Scratch that can move, talk, and run code.
- Block
- A block is a puzzle-shaped piece of Scratch code that tells a sprite what to do.
- Variable
- A variable is a named place to store information, such as a player's score.
- Condition
- A condition is a true-or-false test, such as checking whether an answer matches the correct answer.
- Debugging
- Debugging is finding and fixing mistakes in a program so it works correctly.
Common Mistakes to Avoid
- Forgetting to set score to 0 at the start, which is wrong because an old score may carry over when the game is played again.
- Typing the correct answer differently in the code than in the question, which is wrong because Scratch may mark a right idea as incorrect if the text does not match.
- Putting the score change outside the if-then block, which is wrong because the player may get a point even after giving a wrong answer.
- Asking all questions without waiting for answers, which is wrong because the player needs time to type and submit each response.
Practice Questions
- 1 A quiz has 5 questions worth 1 point each. A player answers 4 correctly. What final score should the game show?
- 2 You want a 10-question quiz, and each correct answer adds 2 points. Write the score update rule and find the score for 7 correct answers.
- 3 A student says the game should use one long speech bubble with all 5 questions at once. Explain why using ask and wait for each question is a better design.