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

Everything in its turn

A story has an order. Our quiz also needs a sequence that makes sense.

Learning paths5 min

Let's discover together

  1. 1

    A list keeps several things in an order. It can be a shopping list, a question list or a list of steps.

  2. 2

    The player needs to see the question before answering. Only after the answer can we show the result.

  3. 3

    In Rust, a Vec can store a list that grows. For now, just understand the idea of items in a sequence.

✦
YOUR MISSION

Put the three steps in order: show question, receive answer, show result.

Now it's your turn

  1. ⠿Show the result
  2. ⠿Show the question
  3. ⠿Receive the answer
A moment to understand

What does a list help organize?

I need a hint

First we need the question. Then we choose an answer. Last we see how it went.

Loading your journey…

Take it with you

Arrange three questions for your own quiz from easiest to hardest.

Show me the Rust behind it

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

let steps = vec!["question", "answer", "feedback"];
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.