A = 1, B = 0 — AND gate

introthe row students misread

Answer

output 0

Why this example is worth doing

A single row of the table, reachable as a permalink so the live toggle opens already set. One input high and one low gives 0, because AND demands every input be true at once. It is the row worth landing on first because it is where AND and OR visibly disagree, and the page shows the OR result beside it. The permalink encoding is the same one the rest of the site uses, so this URL is what a tutor pastes into a message rather than describing the setting in words.

Try your own input in the AND gate. Truth table, symbol and algebraic form for A·B, with a live two-input toggle.

How the answer is reached

The probed row

A = 1, B = 00Row 2 of 4.

Truth table

Truth table — columns #, A, B, A · B
#ABA · B
0000
1010
2100
3111

Compare with

Open this example in the AND gate

The field arrives filled in with this example’s input.

Note:

Notation this page assumes

  • Symbols: · is AND, + is OR, ⊕ is XOR, a prime or an overline is NOT. The field also takes ∧ ∨ ¬ ~ ! & | and the words.
  • Operator precedence, tightest first: NOT, then AND (including juxtaposition), then XOR/XNOR, then NAND/NOR, then OR, then IMPLIES, then IFF.
  • Gate symbols follow whichever standard the header toggle is set to: ANSI/IEEE Std 91-1984 distinctive shapes, or IEC 60617-12 rectangles.

Sources

  • ANSI/IEEE Std 91-1984, Graphic Symbols for Logic Functions
  • IEC 60617-12, Graphical Symbols for Diagrams — Binary Logic Elements