Quiz 1
1. What is the primary purpose of 'lifetimes' in Rust?
2. Which smart pointer is used to allocate a value on the heap?
3. When should you use 'Rc<T>'?
4. What pattern does 'RefCell<T>' implement?
5. What does the 'move' keyword do when used with a closure?
6. Which iterator method would you use to modify elements in a collection?
7. What is a 'trait bound'?
8. What does it mean that Rust iterators are 'lazy'?
9. Which smart pointer should be used for thread-safe shared ownership?
10. What is the 'orphan rule' in Rust?
Previous Next