
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.
Quiz · Rust
A Rust quiz for beginners: immutable bindings and let mut, shadowing, default types, ownership and moves, Copy types, clone(), borrowing and String.
Rust quizzes on ownership and borrowing, predicting whether Rust code compiles and what it prints, and enums, traits and error handling.
Before you start
You have 15 seconds for each question. When time runs out, the question counts as wrong.
Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.
At the end you see your score and can go back through every question and its answer.
XP scales with your score. Replays earn XP only when you beat your previous best.
From players
Play next

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

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