You've learned about Doubles, Booleans, and comparison operators in Swift. Now let's practice combining these concepts together.
Engagement Message
Ready to strengthen your Swift foundations?
Type
Fill In The Blanks
Markdown With Blanks
Let's work with mixed number types. Fill in the blanks to calculate a student's final grade and check if they passed.
Suggested Answers
- 77.0
- >=
- <=
- passed
Type
Multiple Choice
Practice Question
Which of these Swift expressions will result in the boolean value true
?
A. 3.14 == 3
B. 15.0 >= 15
C. 10.5 < 10
D. 8.99 != 8.99
Suggested Answers
- A
- B - Correct
- C
- D
Type
Sort Into Boxes
Practice Question
Sort these Swift values into the correct data type boxes:
Labels
