KnowledgeBoat Logo
|

Computer Science

What are Boolean operators? Explain AND, OR, NOT operators.

Boolean Algebra

2 Likes

Answer

Operators used in Boolean algebra are known as Boolean/Logical operators.

1. AND Operator — AND operator is a binary operator that operates on two variables and the operation performed by AND operator is known as logical multiplication. The symbol used for logical multiplication is dot(.) operator. The truth table for AND operator is as follows:

Truth Table

ABOutput A.B
000
010
100
111

The AND operation will result in true value (1) when both inputs are 1 (true/high) and for all other values it results in 0 (false/low).

2. OR Operator — The OR operator is a binary operator that operates on two variables and the operation performed by OR operator is known as logical addition. The symbol used for logical addition is plus (+) operator. The truth table for OR operator is as follows:

Truth Table

ABOutput A + B
000
011
101
111

The OR operation results in true value (1) when either of the inputs is 1 (true) or both the inputs are 1 (true/high), and for all other values of inputs it results in 0 (false/low).

3. NOT Operator — The NOT operator is a unary operator that operates on one variable and the operation performed by NOT operator is known as negation or complementation. The truth table for NOT operator is as follows:

Truth Table

AOutput A'
01
10

It means that the logical statements A and A' are opposite to each other. If the value of a variable A is 0, its complement would be 1, and if the value of the variable A is 1, its complement would be 0.

Answered By

3 Likes


Related Questions