2. Selection and Iteration
Comparing Boolean Expressions — Quiz
Test your understanding of comparing boolean expressions with 5 practice questions.
Practice Questions
Question 1
Which Boolean expression is true when $x$ is greater than $5$ and less than $10$?
Question 2
What is the result of the Boolean expression $7 < 3$?
Question 3
In Java, which expression correctly checks whether the variable $age$ is at least $18$?
Question 4
What does the condition $score == 100$ mean?
Question 5
Which Boolean expression is true when $n$ is not equal to $0$?
