大象传媒

Truth tables - EdexcelAND gates

Computers are collections of transistors and circuits. These connect together to form logic gates, which in turn are used to form logic circuits. These can be represented as truth tables, Boolean algebra logic statements, and diagrams.

Part of Computer SciencePrinciples of computer science

AND gates

An AND gate uses two inputs to generate one output. The output is 1 (TRUE) only if both of the inputs are 1 (TRUE).

AND gates are represented diagrammatically as:

Two separate AND gates representing a TRUE and a FALSE output

A represents the first input. B represents the second input. Q represents the output.

A shows, for each combination of inputs, what the output will be. An AND gate is represented in a truth table as seen below.

ABQ
000
010
100
111
A0
B0
Q0
A0
B1
Q0
A1
B0
Q0
A1
B1
Q1

This AND gate is represented in by the logic A AND B.