All quizzes
Free quiz · 50 questions in the bank

Rust quiz

Test your Rust knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does the `mut` keyword in `let mut x` allow that plain `let` does not?

Questions in this quiz
  1. What does the `mut` keyword in `let mut x` allow that plain `let` does not?
  2. What does `match` require?
  3. How do you create a growable vector and push two elements?
  4. What is "ownership" in Rust?
  5. What does this iterate: `for x in 0..5 { … }`?
  6. What does `let mut x = 5; x = 6;` do?
  7. What is a trait in Rust?
  8. What does this code do: `let s = String::from("hi"); let t = s; println!("{}", s);`?
  9. What is `Option<T>`?
  10. What is a `Box<T>`?
  11. What does `&value` produce?
  12. What does `enum Color { Red, Green, Blue }` create?
Gaps to close?
Read the curated Rust notes — core concepts, patterns, interview prep.
Rust notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web