Total Questions : 10
Expected Time : 10 Minutes

1. Which Rust keyword is used to implement a trait for a type?

2. What is the primary purpose of the 'enum' keyword in Rust?

3. Elaborate on Rust's concept of lifetimes and how it avoids dangling references.

4. In Rust, what does the 'derive' attribute do?

5. How does Rust achieve zero-cost abstractions and what is the significance of the ownership model in this context?

6. Which Rust keyword is used to declare a variable binding?

7. Explain the role of the 'unsafe' keyword in Rust and scenarios where its use is justified.

8. In Rust, what is the purpose of the 'match' keyword?

9. In Rust, how do you define a constant?

10. Which Rust data type is used for boolean values?