Skip to content

Quiz · Rust

Rust Basics Quiz: Variables, Types & Ownership

A Rust quiz for beginners: immutable bindings and let mut, shadowing, default types, ownership and moves, Copy types, clone(), borrowing and String.

Questions
15
Difficulty
Easy
Time
~8min
Per question
15sec

What it covers

Rust

A topic in Programming & Coding.

Rust quizzes on ownership and borrowing, predicting whether Rust code compiles and what it prints, and enums, traits and error handling.

Before you start

How it works

  1. 1

    The clock

    You have 15 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of Rust

Programming & Coding · Rust

Rust Code Quiz: Predict the Result

Rust borrowing and output questions: will it compile, and what will it print? Covers match, vectors, moves, mutable references, Option, Result and slices.

Medium difficulty15 questions~10 min
+120 XPPlay

Programming & Coding · Rust

Rust Intermediate Quiz: Enums, Traits & Error Handling

A Rust traits and error handling quiz: Option and Result, the ? operator, enums with data, exhaustive matches, trait bounds, lifetimes and derive.

Hard difficulty15 questions~12 min
+150 XPPlay