This is a walk through of one method of using Scratch to code a quiz that asks a randomly-chosen question, then can check the typed in answer against a list of answers. The question can be deleted if answered correctly or just if it has been asked. This code can integrate well with a Makey Makey board to create a touch-interactive quiz.
Find the Scratch project with comments here:
https://scratch.mit.edu/projects/570854197
Here's a look at a demo game board with this Scratch program in use:
https://youtu.be/nQj4UhWLtD0
Here's my blog article for Tinkercad on board game design ideas:
https://blog.tinkercad.com/robs-tinkercad-classroom-board-games-for-the-win