Skip to main content

← Computer Science syllabus

United StatesComputer Science

Unit 3: Boolean Expressions and if Statements

7 dot points across 7 inquiry questions. Click any dot point for a focused answer with worked past exam questions where available.

How do relational operators build boolean expressions, and what value does each one produce?

How do you compare objects in Java, and why does == differ from the equals method?

How do the logical operators &&, || and ! combine conditions, and what is short-circuit evaluation?

How does an else if chain select one outcome from several mutually exclusive options?

How do De Morgan's laws let you rewrite a negated boolean expression into an equivalent one?

How does an if-else statement choose between two alternative blocks of code?

How does an if statement use a boolean condition to control which statements run?