Boolean Logic and Logic Gates Notes
Boolean Logic and Logic Gates Notes
Boolean Logic is a form of algebra used in computer science and electronics. It deals with
only two values: True (1) and False (0). This system helps computers make decisions by
evaluating logical statements.
• Boolean logic is used in the design of computer circuits, like the ones in calculators or
phones. It helps control the flow of electrical signals based on conditions.
• Learning Boolean logic helps break down problems into simple, manageable parts. It
helps in finding out what must be true for something to happen, making it easier to
solve complex problems.
• From search engines to social media platforms, Boolean logic is used to filter
information. You use Boolean operators like AND, OR, and NOT when searching for
information online.
A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1
2. OR Operation (⋁)
o Rule: The result is True (1) if at least one input is True.
o Truth Table:
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
A NOT A
0 1
1 0
A Truth Table is a way to show how the value of a Boolean expression changes depending
on the values of its variables. It helps us understand how different logical operations (like
AND, OR, and NOT) work in a simple and organized way.
Boolean Expressions:
• A AND B
• A OR B
• NOT A
A truth table lists all possible values of the variables and shows the result of the Boolean
expression for each combination.
1. A = True, B = True
2. A = True, B = False
3. A = False, B = True
4. A = False, B = False
The AND operator (AND) gives True only when both values are true. Otherwise, it gives
False.
A B A AND B
True True True
True False False
False True False
False False False
Example 2: OR Operation (A OR B)
The OR operator (OR) gives True if at least one of the values is true. It only gives False
when both values are false.
A B A OR B
True True True
True False True
False True True
False False False