Rust Beginner 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. Where does Rust store data with a fixed size known at compile time?
The Heap
The Stack
The Cache
2. Which string type is growable and owned?
String
&str
str
3. What happens to a variable's memory when it goes out of scope?
It is moved to the heap
The Garbage Collector finds it later
It is automatically deallocated (dropped)
4. Which symbol is used to create a reference in Rust?
*
&
@
5. By default, are references in Rust mutable or immutable?
Immutable
Mutable
It depends on the variable
6. How many mutable references to a piece of data can you have at once?
Unlimited
Exactly one
Two (one for read, one for write)
7. What is a 'slice' in Rust?
A copy of an array
A way to delete data
A reference to a part of a collection
8. Which keyword is used to define a custom data structure?
struct
class
object
9. Where do you define methods for a struct?
Inside the struct block
Inside an 'impl' block
In a separate main function
10. Which enum is used to handle the possibility of a null-like value?
Result
Nullable
Option
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