# Programming a quiz

**URL:** <https://forum.makecode.com/t/programming-a-quiz/6954>\
**Category:** Arcade\
**Created:** [March 24, 2021, 3:23pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954 "2021-03-24T15:23:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BruceSchwa](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BruceSchwa](https://forum.makecode.com/u/BruceSchwa)\
**Post date:** [March 24, 2021, 3:23pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/1 "2021-03-24T15:23:39Z")

</div>

I have some students who are programming a game and they want to insert a quiz. They are looking at If/Then and If/Then/Else, but wanted to know if there are other ways

---

<div class="post-metadata">

**Author:** ![BruceSchwa](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BruceSchwa](https://forum.makecode.com/u/BruceSchwa)\
**Post date:** [March 24, 2021, 3:23pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/2 "2021-03-24T15:23:38Z")

</div>

My students just gave me more info. They want the player to select from a list of sprites as to “who done it”. If they guess wrong, then… If they guess right, then… Any programming help would be appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)\
**Post date:** [March 24, 2021, 4:35pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/3 "2021-03-24T16:35:02Z")

</div>

You might want to try the story extension…

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 24, 2021, 4:35pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/4 "2021-03-24T16:35:07Z")

</div>

Use arrays! They are basically lists! You can store numbers, sprites, booleans, text, tilemaps, images, and so much more!

---

<div class="post-metadata">

**Author:** ![shakao](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shakao/32/113_2.png) [@shakao](https://forum.makecode.com/u/shakao)\
**Post date:** [March 29, 2021, 4:46pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/5 "2021-03-29T16:46:59Z")

</div>

Using “overlaps” is probably the quickest way to do this! You can have the player control a cursor of some kind with the “move mySprite with buttons” block, and check if the cursor is overlapping the correct quiz answer using this overlaps block:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b622447548d03cc960e74e1145c1234eb9a74e00.png)

Here’s an example game doing this:

> **[game-quiz](https://arcade.makecode.com/06646-91598-32708-35284)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Alternatively, they could look into using the “Custom Menu” extension: [https://github.com/riknoll/arcade-custom-menu](https://github.com/riknoll/arcade-custom-menu)

You can paste this URL into the search box on the “Add Extension” page to add it to a project, and it will provide a variety of blocks for creating menus, which could be used to design a quiz. Feel free to post any followup questions here, we’re happy to help!

---

<div class="post-metadata">

**Author:** ![edillard](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@edillard](https://forum.makecode.com/u/edillard)\
**Post date:** [March 2, 2023, 11:00pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/6 "2023-03-02T23:00:25Z")

</div>

Hi Bruce.

I thought you might like to see a quick quiz. Uses - advanced blocks (Text and Function)  
Ask for Number, Ask for String are under game.  
The if statements are under logic. For the if statements use ( x = x) for numbers (" " = " " ) for strings in place of True:  
Link: [https://makecode.com/\_0CcWzVRXWHDw](https://makecode.com/_0CcWzVRXWHDw)

---

<div class="post-metadata">

**Author:** ![DanielZ](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danielz/32/21989_2.png) [@DanielZ](https://forum.makecode.com/u/DanielZ)\
**Post date:** [April 30, 2025, 10:38pm UTC](https://forum.makecode.com/t/programming-a-quiz/6954/7 "2025-04-30T22:38:53Z")

</div>

I have a quiz that i’m working on

> **[Quiz Center V0.89 Beta](https://arcade.makecode.com/S43724-08747-83647-38902)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
