5 questions to test your understanding
A programmer writes: is_raining = temperature < 32. When temperature holds the value 45, what is stored in is_raining?
Which statement best describes what the expression x > 10 produces when evaluated in a program?
The result of a comparison like age >= 18 can be stored in a variable, just like a number or text value.
Because booleans represent simple yes/no answers, each comparison is expected to stand on its own — boolean values can seldom be combined with other operations.
A classmate argues that booleans are just 0 and 1 and there's no reason to treat them differently from numbers. Why is this view incomplete?