Rust (Coding) Quiz
Rust language fundamentals: ownership, borrowing, and the safety guarantees that define the language.
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?
- final
- let
- var
- const
- def
Which keyword is required to make a binding mutable?
- unsafe
- mut
- var
- rw
- mutable
Which crate manager is standard for Rust projects?
- rustup
- crates
- rustpm
- cargo
- cargo-cult
Which command creates a new Rust binary project?
- cargo init --bin my_app --new
- rustc create my_app
- cargo new my_app
- cargo gen my_app
- rust new my_app
Which type is an owned heap-allocated UTF-8 string?
- CString
- String
- OsString
- &str
- str
Related categories
Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
Security
General information security concepts: threats, defenses, and the fundamentals every IT professional should know.
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.