Rust (Coding) Quiz
Rust ownership, borrowing, and the compiler's safety guarantees.
This category currently has 102 questions in the SERVBG quiz bank. Below are a few sample questions: the full interactive quiz shuffles through the whole set with instant scoring.
Sample questions
Which keyword declares an immutable binding in Rust?
- const
- final
- def
- var
- let
Which keyword is required to make a binding mutable?
- mutable
- mut
- var
- unsafe
- rw
Which crate manager is standard for Rust projects?
- rustup
- cargo-cult
- crates
- rustpm
- cargo
Which command creates a new Rust binary project?
- cargo gen my_app
- cargo new my_app
- rust new my_app
- cargo init --bin my_app --new
- rustc create my_app
Which type is an owned heap-allocated UTF-8 string?
- CString
- String
- OsString
- str
- &str
Related categories
Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.