Rust Intermediate Quiz 2
q
L
quizLearn
Select your answers and check your results. Use Reset to start again.
Practice Pronunciation (Merriam-Webster)
Search Google
Search
Navigation
HTML Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
HTML Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
HTML Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
CSS Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
CSS Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
CSS Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
PHP Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
PHP Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
PHP Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
GO Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
GO Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
GO Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Kotlin Beginner Quizzes
Quiz 1
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Kotlin Intermediate Quizzes
Quiz 1
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Kotlin Advanced Quizzes
Quiz 1
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Rust Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Rust Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Rust Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Quiz 2
1. What is the meaning of the ''static' lifetime?
The variable cannot be moved
The reference is valid for the whole program life
The data is stored in the CPU registers
2. What is 'deref coercion'?
Automatic conversion of a smart pointer reference to a regular reference
Forcing a pointer to be null
Manually deleting a Box
3. Which dispatch method does Rust use for generics by default?
Runtime dispatch
Dynamic dispatch
Static dispatch
4. What keyword is used to indicate a trait object?
trait
dyn
impl
5. Which closure trait allows the closure to be called only once?
FnOnce
FnMut
Fn
6. Which of these is a valid action inside an 'unsafe' block?
Ignore all ownership rules
Speed up the CPU
Dereference a raw pointer
7. What is a 'blanket implementation'?
An implementation that covers all modules
Implementing a trait for all types that satisfy a trait bound
A way to ignore error handling
8. What is the difference between 'Copy' and 'Clone' traits?
Copy is implicit/bitwise; Clone is explicit
Copy is only for the heap; Clone is for the stack
There is no difference
9. How do you define a 'super-trait' relationship?
trait A : B {}
trait A impl B {}
trait B: A {}
10. How does 'Cell<T>' differ from 'RefCell<T>'?
Cell is thread-safe
Cell works by copying values; RefCell uses references
Cell is slower than RefCell
Previous
Check Quiz
Reset
Next
Other
Timer
00:00
Start
Stop
Reset
Vocabulary Quiz
Score: 0
Reset Score
Submit Answer
Next Word
Spin the Wheel
SPIN
Promo's
Explore More
External Link