What is the truth table for the Boolean operator AND?

The Boolean operator AND is a very common one encountered in Computer Science, along with NOT and OR (and its variant XOR). The operator takes in two inputs and gives one output. The truth table shows all these possible combinations. Let us call the two inputs "a" and "b" and the output "o". The table would look like:
a b o
0 0 0
0 1 0
1 0 0
1 1 1
We have 2 inputs, each input having 2 possible values (1 = true, 0 = false) therefore there are 4 possible combinations. For the AND operator to return true, both inputs have to be true. If the inputs are not both true, it will return false.

AN

Related Computing GCSE answers

All answers ▸

What are 'pointers'?


Describe the time complexity for the search operation in a binary search tree.


Convert the following binary number into hexadecimal : 10111000


Calculate the file size in bits for a two minute sound recording that has used a sample rate of 1000 Hertz (Hz) and a sample resolution of 5 bits.