Question: 1. Given two binary numbers 0b10011011 and 0b01101001, perform a bit wise AND operation. Provide the result in binary. 2. Given two binary numbers 0b10101011

1. Given two binary numbers 0b10011011 and 0b01101001, perform a bit wise AND operation. Provide the result in binary.

2. Given two binary numbers 0b10101011 and 0b01001101, perform a bit wise OR operation. Provide the result in binary.

3. Given two binary numbers 0b10011010 and 0b01011001, perform a bit wise XOR operation. Provide the result in binary.

4. Given the hexadecimal number 0x19BC, perform a bit wise NOT operation (complement). Provide the result in hexadecimal.

5. When a binary shift operation is performed binary data can be shifted right or left and a 0 is brought to fill vacated positions while the bit that is shifted out is discarded. Shift the 8-bit binary number that is equivalent to 0x17 right two, give the result in binary. 2

6. When a binary rotate operation is performed binary data can be shifted right or left: the bit that is shifted out from one end will be brought back in on the other end. Rotate the 8-bit binary number that is equivalent to 0x4B left two, give the result in binary.

7. For an 8-bit (byte) sized binary number, what mask and operation would you use to set (make 1) the lower 2 bits without changing the remaining bits? a. Mask (in binary) b. Operation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!