Quiz 3
1. Which enum is used for error handling in Rust?
2. What happens if you call '.unwrap()' on a Result that is an 'Err'?
3. What is the '?' operator used for?
4. Which collection is a growable array type?
5. What is a 'Trait' in Rust?
6. How do you automatically implement a trait like 'Debug' for a struct?
7. Are items in a Rust module public or private by default?
8. Which keyword is used to declare a module?
9. What is the purpose of 'Generics' in Rust?
10. Which command checks if your code compiles without building an executable?
Previous Next