Recall & Review
beginner
What are the two Boolean values in Sass?
The two Boolean values in Sass are true and false. They represent yes/no or on/off states.
Click to reveal answer
beginner
How do you write a logical AND operation in Sass?
Use the keyword
and to combine two conditions. Both must be true for the result to be true.Click to reveal answer
beginner
What does the logical OR operator do in Sass?
The
or operator returns true if at least one of the conditions is true.Click to reveal answer
beginner
How does the NOT operator work in Sass?
The
not operator reverses a Boolean value: true becomes false, and false becomes true.Click to reveal answer
beginner
Why are Boolean values useful in Sass?
Boolean values help control which styles apply by checking conditions, like screen size or theme, making styles dynamic and flexible.
Click to reveal answer
Which of these is a valid Boolean value in Sass?
✗ Incorrect
In Sass, Boolean values are
true and false. Words like 'yes' or numbers like '1' are not Boolean values.What does
true and false evaluate to in Sass?✗ Incorrect
The
and operator returns true only if both sides are true. Here, one side is false, so the result is false.What is the result of
not true in Sass?✗ Incorrect
The
not operator flips the Boolean value. So not true becomes false.Which operator would you use to check if at least one condition is true?
✗ Incorrect
The
or operator returns true if any one of the conditions is true.What is the purpose of Boolean logic in Sass?
✗ Incorrect
Boolean logic helps Sass decide which styles to apply by checking conditions, making styles dynamic.
Explain how the logical operators
and, or, and not work in Sass Boolean logic.Think about how you decide yes/no answers in real life.
You got /3 concepts.
Describe a simple example where Boolean values help control styles in Sass.
Imagine turning a light on or off based on a switch.
You got /3 concepts.