Skip to content
Marlbridge

AP® Computer Science A · Unit 2 · Topic 2.6

Comparing Boolean Expressions: Topic Checklist (Computer Science A 2.6)

Specific I can statements for equivalent Boolean expressions, De Morgan's laws and comparing object references, each linked to the guide section or practice question that tests it.

Work through the list without notes. If you cannot do a statement, follow its link, then come back. Guide = study guide; Practice = practice questions.

Understanding

  • I can state what it means for two Boolean expressions to be equivalent. (Guide: “When are two conditions the same?”; Practice question 7)
  • I can state both De Morgan’s laws. (Guide: “De Morgan’s laws”; Practice question 1)
  • I can explain what == compares for objects, and what equals compares. (Guide: “Comparing object references”; Practice questions 3 and 6)
  • I can explain what null means and why a method must not be called on it. (Guide: “null references”; Practice question 4)

Skills

  • I can build a truth table for expressions of two or three variables. (Guide: “Proving equivalence with a truth table”; Practice question 7)
  • I can rewrite a negated compound condition using De Morgan’s law and relational complements. (Guide: Worked example 1; Practice questions 1, 5 and 8)
  • I can trace references through assignments, including aliasing and reassignment. (Guide: Worked example 2; Practice questions 6 and 9)
  • I can write a null-safe condition by putting the null test first with && or ||. (Guide: “null references”; Practice question 10)

Reasoning

  • I can show that two expressions are not equivalent by finding one row that differs. (Guide: Worked example 1(c); Practice questions 2 and 7)
  • I can say why the complement of < is >=, using a boundary value. (Guide: “De Morgan’s laws”; Practice question 5)
  • I can predict which calls are never made because of short-circuit evaluation. (Practice questions 4, 9 and 10)

All ticked? Move on to the Topic 2.7 study guide, while Loops.

AP® and Advanced Placement® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website. Marlbridge is an independent tuition provider. It is not an authorized AP course provider, an AP school or an exam centre, and these resources are not official College Board materials. Reading them or doing simulations does not meet the laboratory requirement of an AP science course.