5 questions to test your understanding
A programmer writes `if (x = 5) { doSomething(); }` intending to check whether x equals 5. In a language like C, what actually happens?
What does Python return for the expression `'Banana' < 'apple'`?
In Python, `'Banana' < 'apple'` evaluates to True, even though 'banana' comes after 'apple' in the dictionary.
The single equals sign (=) and the double equals sign (==) can be used interchangeably in conditional expressions in most programming languages.
Why do comparison operators return a boolean value, and how does this connect them to conditional statements like `if`?