Skip to content

Rust Ownership And Borrowing Explained Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 120 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

What are the three ownership rules in Rust?

Show ▼

Each value in Rust has an owner. There can only be one owner at a time. When the owner goes out of scope, the value is dropped.

What happens to a value when its owner goes out of scope in Rust?

Show ▼

It is dropped — its drop function runs and its memory is freed.

Which standard library function is called when a value goes out of scope?

Show ▼

drop, from the Drop trait, is called automatically at the end of the variable's scope.

What is a "move" in Rust?

Show ▼

A transfer of ownership: assigning a value to another variable or passing it to a function moves the value, invalidating the source binding.

Why does Rust move ownership instead of shallow-copying by default?

Show ▼

Moving avoids double-free bugs and keeps the type system simple — for stack-allocated types that own heap data (like String), copying the pointer would leave two owners.

🎯 Take the Rust Ownership And Borrowing Explained Practice Exam