0% found this document useful (0 votes)
34 views

Lesson 12 Boolean Operations

The document discusses Boolean operations which are used to manipulate true/false values or bits (0 and 1) inside a computer. The three basic Boolean operations are AND, OR, and XOR. AND produces an output of 1 only if both inputs are 1, while OR produces an output of 1 if either input is 1. XOR outputs 1 if the inputs are different but 0 if they are the same. Not inverts the input bit, outputting 1 for 0 and 0 for 1. An example table demonstrates how these Boolean logic operations work on sample bit patterns A and B.

Uploaded by

Mitha GEE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Lesson 12 Boolean Operations

The document discusses Boolean operations which are used to manipulate true/false values or bits (0 and 1) inside a computer. The three basic Boolean operations are AND, OR, and XOR. AND produces an output of 1 only if both inputs are 1, while OR produces an output of 1 if either input is 1. XOR outputs 1 if the inputs are different but 0 if they are the same. Not inverts the input bit, outputting 1 for 0 and 0 for 1. An example table demonstrates how these Boolean logic operations work on sample bit patterns A and B.

Uploaded by

Mitha GEE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

12.

Boolean Operations

To understand how individual bits are stored and manipulated inside a computer, it is convenient to
imagine that the bit 0 represents the value false and the bit 1 represents the value true. Operations
that manipulate true/false values are called

Boolean operations, in honor of the mathematician George Boole (1815–1864), who was a pioneer
in the field of mathematics called logic. Three of the basic Boolean operations are AND, OR, and
XOR (exclusive or). The “AND” operation and “OR” are summarized in the Figure 15.

1. AND Boolean Operation

It produces the output as 1 when both of the inputs are 1. Otherwise, it gives output as 0 as shown in
the Figure 15. 

1. OR Boolean Operation

It produces output of 1 when any of the inputs are 1, otherwise 0 as shown in the Figure 15.

1. XOR Boolean Operation

XOR (Exclusive or) is another Boolean operation which produces the output of 1 when both inputs
are different. It produces 0 when both inputs are same as shown in the Figure 16.

1. Not Operation 

Not operation takes one input, produces 1 when input is 0 and produces 0, when the input is 1 as
shown in the Figure 16. 

Boolean Operation Example

To demonstrate the working of the Boolean operations, an example has been shown in the Table 6.
First two rows represent the bit patterns as “A” and “B” and next rows are self-explanatory to
perform “AND”, “OR”, “XOR”, “Not” on both “A” and “B”.   

Table 6: Example of Boolean operation

 
 

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy