Truth Tables and De Morgan's Rules
2. Review of Truth Tables
xcontains 9 and
The expression evaluates to False. One way to show this is below.
Review of Truth Tables
A truth table shows the evaluation of a boolean expression.
- Each row of a truth table starts with a selection of truth values for the operands.
- There is one row for each possible selection of truth values.
- The columns show the truth value of expressions and subexpressions containing the operands.
The table at right has four rows for the truth values, one row for each of the four possible choices for the two operands. (The operands are the relational expressions
y>10.) The last column shows the result of the
&& operator with those values.
x < 12
y > 10
x < 12 && y > 10
What row of the table is used when
xcontains 1 and