← All quizzes
💻 Computer Science & IT
Rust fundamentals
Ownership, borrowing, lifetimes and error handling — why Rust rejects your code, and why it is right to.
8questions
harddifficulty
+16max XP (1st try)
not rated yet
Question 1 of 8
In Rust, how many owners can a value have at one time?
Question 2 of 8
The borrow checker allows, at any one moment:
Question 3 of 8
`Result<T, E>` is used for:
Question 4 of 8
What does the `?` operator do in a function returning `Result`?
Question 5 of 8
A `String` differs from `&str` in that `String` is:
Question 6 of 8
Lifetimes exist to:
Question 7 of 8
`unsafe` in Rust means:
Question 8 of 8
Which trait pair makes a type safe to send between and share across threads?
0/8 answered