Rullst AcademyRullst Academy/Lesson
My first quiz with Rullst · Lesson 03 / 08

One question, two choices

A quiz needs a clear question and answers. Let's look at both parts slowly.

Learning paths5 min

Let's discover together

  1. 1

    A question invites us to think. Our question is: how many stars are there?

  2. 2

    Options are the paths you can choose. One matches what we see.

  3. 3

    We store which option is correct. Then we compare the player's choice with that answer.

✦
YOUR MISSION

Count the stars, choose the answer and explain how the game knows if you're right.

Now it's your turn

Your creation, live
A moment to understand

How does the quiz check your answer?

I need a hint

Touch each star to count: one, two, three, four.

Loading your journey…

Take it with you

Invent a question with only one correct answer. Avoid questions that depend on personal taste.

Show me the Rust behind it

This part is optional. You don't need to memorize the code to continue.

let correct_answer = "4";
let is_correct = answer == correct_answer;
At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.