9. Quiz


Remember how you had to practice on the multiplication tables in 2nd grade? We're going to make that a little more fun! With Scratch we make a quiz in which our Sprite asks all kinds of exercises. The more correct answers, the more points! And of course it is also a race against time!

You learn to:

  • use variables in text
  • multiply variables

Register before you start the exercise. Click the button below and sign up.

Click here


Take a look at the example and consider the following questions:

  • What should I do?
  • What are the goals?
  • What are the expectations?
  • What can I already do?
  • What do I still have to discover?

Geef de oplossing in van de vermenigvuldiging.


View the steps at 'perform'. Then answer the following questions:

  • Which steps should I follow?
  • Which steps can I follow?
  • How much time do I need?
  • What tools do I need?


Do the steps one by one. Do you not remember how to do it? View the hints or download the solution.


As always, start Scratch's online editor and delete the cat sprite. Now we can start to compose the quiz questions (multiplications of your choice).

Then choose a nice backdrop and a nice sprite to ask the questions. You can of course choose this yourself. So again you don't have to follow our example, but you do have to take all the steps described in this project!

We choose a glamorous backdrop and a nice presenter:



We now create two variables, each containing a number that must be multiplied together.


They will also be placed at the top left of our playing field:


If we want to practice all multiplication tables, we have to make each variable form a random number between 0 and 10.


Do you want to make it harder or easier? Then change one or both numbers.



We now add a question in the code (see 'Observe'). Then it becomes difficult: we have to merge certain codes. Two variables are added (number 1 and number 2), as well as a multiplication sign.

Merge blocks until you get this:


Then you tell Scratch that if 'number 1 x number 2' equals the answer the player gives, a nice sound must be played and the quizmaster must say something motivating (eg: great!). Otherwise (so if the answer is wrong) there must be an annoying sound and the quizmaster must "think" something. We put everything in a "repeat" loop so that the number of questions is unlimited.


To make it all a bit more exciting, we are going to install a timer. And one that counts back. When the time is up, the game stops. To do this, create an extra variable  "Time". You already used this code in previous exercises. Do you remember the code and can you make it yourself?


Depending on the Sprite you chose, you will see different variants under "costumes". We chose Abby and we see four different figures in the "costumes" tab:


By inserting this button in your code you can change your figure if there is a correct or incorrect answer:



With an extra variable we can keep track of the score. Nice to see how many exercises you could solve within the available time!



Make your game "real" now!

You can:

- link a piece of music when the time is up.

- add a ticking clock during the game that makes it even more nerve-racking.


goed gedaan   

Well done!


Look back at the project you just made. Ask yourself the following questions:

  • Does the program work as I expected? Why / why not?
  • What works well?
  • What works less well?
  • How can I approach it differently?


Click the link below to download a sample solution. 


Upload the project in Scratch. Click the button below and follow the steps.

Click here