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 whatequalscompares. (Guide: “Comparing object references”; Practice questions 3 and 6) - I can explain what
nullmeans 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.