You've learned how to work with floating-point numbers, create Boolean values, and use comparison operators. Now let's practice combining these skills together.
Engagement Message
Ready to test your understanding?
Type
Multiple Choice
Practice Question
What type of value will be stored in result
after this code runs?
A. f64 (floating-point number)
B. bool (Boolean)
C. i32 (integer)
D. String
Suggested Answers
- A
- B - Correct
- C
- D
Type
Sort Into Boxes
Practice Question
Sort these expressions based on their result type:
Labels
- First Box Label: Boolean Results
- Second Box Label: Float Results
First Box Items
- 10.0 != 5.0
- 7.5 >= 7.5
- price < 100.0
Second Box Items
- 3.14 + 2.86
- 15.0 / 3.0
- 2.5 * 4.0
Type
Fill In The Blanks
Markdown With Blanks
Complete this temperature conversion calculation:
