A quick multiple-choice check before you move on. Answer every question, then submit to see how you did.
1.A Rust function body ends with the line x * 2 and no semicolon follows it. What does the function return?
2.In Rust, what is the type () and how does it differ from C#'s void?
3.You want a connect function that a caller can invoke with or without specifying a timeout. Why can't you just write fn connect(timeout: u32 = 30) in Rust?
4.A C# developer tries to define both fn area(r: f64) -> f64 and fn area(w: f64, h: f64) -> f64 in the same Rust module. What happens?
5.Rust has no params-style variadic parameters. According to the theory, what is the idiomatic way to write a sum function that accepts many i32 values?