Rust Beginner's Test
Time Elapsed: 0 seconds
1. What is the output of the following code?
fn main() {
println!("{}", 5 + 3 * 2);
}
2. Which keyword is used to define an immutable variable in Rust?
3. How do you declare a function in Rust?
4. What is the output of the following code?
fn main() {
let x = 5;
let y = 10;
println!("{}", x == y);
}