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?
- def
- let
- final
- var
- const
Which keyword is required to make a binding mutable?
- mutable
- mut
- var
- rw
- unsafe
Which crate manager is standard for Rust projects?
- cargo
- cargo-cult
- crates
- rustup
- rustpm
Which command creates a new Rust binary project?
- rust new my_app
- cargo gen my_app
- cargo new my_app
- cargo init --bin my_app --new
- rustc create my_app
Which type is an owned heap-allocated UTF-8 string?
- CString
- OsString
- String
- &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.