How Well Do You Know Rust?

How Well Do You Know Rust?

Test your knowledge about the Rust programming language with this quiz!

published on January 250 responses 0
Next »
1/12

What is Rust primarily used for?

What is Rust primarily used for?
Web development
Data analysis
Systems programming
Artificial intelligence
2/12

Which company developed Rust?

Which company developed Rust?
Mozilla
Google
Microsoft
Apple
3/12

Which of the following is NOT a unique feature of Rust?

Which of the following is NOT a unique feature of Rust?
Fearless concurrency
Zero-cost abstractions
Memory safety without garbage collection
Automatic semicolon insertion
4/12

What is the ownership system in Rust designed to prevent?

What is the ownership system in Rust designed to prevent?
Null pointer exceptions
Memory leaks
Data races
Compiler errors
5/12

Which symbol is used to create a mutable reference in Rust?

Which symbol is used to create a mutable reference in Rust?
&
&mut
*
@@
6/12

What is the file extension for Rust source code files?

What is the file extension for Rust source code files?
.c
.cpp
.rs
.py
7/12

Which of the following is a valid Rust variable binding declaration?

Which of the following is a valid Rust variable binding declaration?
let mut x = 5;
let x = 5;
const x = 5;
var x = 5;
8/12

What does the 'move' keyword do in Rust?

What does the 'move' keyword do in Rust?
Declares a structure
Imports a module
Transfers ownership of a value
Increments a variable
9/12

Which of the following is NOT a built-in data type in Rust?

Which of the following is NOT a built-in data type in Rust?
String
u32
bool
float
10/12

What is the default visibility of items in a Rust module?

What is the default visibility of items in a Rust module?
Private
Public
Protected
Package-private
11/12

What is the macro system used in Rust called?

What is the macro system used in Rust called?
GNU Make
Autoconf
Mach
Cargo
12/12

Which of the following platforms does NOT support Rust?

Which of the following platforms does NOT support Rust?
Windows
Linux
macOS
Android