Total Questions : 40
Expected Time : 40 Minutes

1. In Rust, what does the 'match' keyword do?

2. What is the purpose of the 'Cow' type in Rust?

3. What is the purpose of the 'as' keyword in Rust?

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

5. What is the purpose of the 'self' keyword in Rust?

6. What is the file extension for Rust source code files?

7. Which Rust keyword is used to define a constant?

8. Which Rust attribute is used to disable the 'dead code' lint warning?

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

10. Which attribute is used to mark functions that should be called on program start?

11. Which keyword is used to define a function in Rust?

12. Explain Rust's concept of ownership and borrowing in the context of mutable and immutable references.

13. What is the primary purpose of the 'Cow' type in Rust?

14. What is the purpose of the 'Result' type in Rust, and how does it differ from 'Option'?

15. What is the primary focus of the Rust programming language?

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

17. What is the Rust concept that allows a value to be used in multiple parts of a program?

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

19. Which Rust data type is used to represent floating-point numbers?

20. Discuss Rust's philosophy of 'Fearless Concurrency' and how its language features contribute to achieving this.

21. Discuss Rust's ownership model and how it handles resource cleanup and prevents memory leaks.

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

23. What are Rust's unsafe blocks, and in what scenarios are they used?

24. Explain Rust's concept of 'Cow' in relation to string handling.

25. Examine Rust's 'Arc' type and its role in concurrent programming.

26. In Rust, how do you create a new thread?

27. What is the ownership system in Rust designed to prevent?

28. In Rust, what is the role of the 'mod' keyword?

29. Which Rust trait is used for defining custom string representations of objects?

30. How do you create a new Rust project using Cargo?

31. In Rust, how do you print to the standard output?

32. Which Rust macro is used for creating a 'match' expression?

33. What is the purpose of the 'Deref' trait in Rust?

34. What is the purpose of the 'Any' trait in Rust?

35. What is Rust's approach to zero-cost abstractions, and how does it impact the performance of compiled code?

36. Explain the concept of lifetimes in Rust and their role in the borrow checker.

37. In Rust, what is the purpose of the 'borrow checker'?

38. Explain the role of 'match' in Rust and how it facilitates pattern matching beyond simple value checking.

39. In Rust, what is the role of the 'drop' function?

40. How does Rust handle concurrency, and what is the significance of ownership in concurrent programming?