Answer to Question #310346 in Discrete Mathematics for frank

Question #310346

Find the bitwise OR, bitwise AND, and bitwise XOR of each of these pairs of bit strings. a) 101 1110, 010 0001


b) 1111 0000, 1010 1010


pc) 00 0111 0001, 10 0100 1000


d) 11 1111 1111, 00 0000 0000

1
Expert's answer
2022-03-15T08:22:43-0400

The definitions:

0 OR 0 = 0     0 AND 0 = 0     0 XOR 0 = 0

0 OR 1 = 1     0 AND 1 = 0     0 XOR 1 = 1

1 OR 0 = 1     1 AND 0 = 0     1 XOR 0 = 1

1 OR 1 = 1     1 AND 1 = 1     1 XOR 1 = 0

 

To calculate the answer, combine the bit of one string with the corresponding bit of the other strip using the above definitions.


a) 101 1110

010 0001

                     ---------------

bitwise OR 111 1111

bitwise AND 000 0000

bitwise XOR 111 1111


b) 1111 0000

1010 1010

                    ------------------

bitwise OR 1111 1010

bitwise AND 1010 0000

bitwise XOR 0101 1010


c) 00 0111 0001

10 0100 1000

                   ----------------------

bitwise OR 10 0111 1001

bitwise AND 00 0100 0000

bitwise XOR 10 0011 1001


d) 11 1111 1111

00 0000 0000

                  -----------------------

bitwise OR 11 1111 1111

bitwise AND 00 0000 0000

bitwise XOR 11 1111 1111





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS