1a. Perform arithmetic shift (left then right) on the following number:
11011101 in airthmetic left shift we remove the most significant bit and add the 0 after the Least significant bit and in arithmetic right shift we remove the least significant bit and add the MSB number at MSB
After left shift 10111010 then after right shift it becomes 11011101
1b. Perform logical shift (left then right) on each of the following:
11011101 in logical left shift is same as the airthemetic left shift but in logical right shift we remove the least significant bit and add zero before the MSB
After left shift 10111010 then after right shift it becomes 01011101
Please hit the like button if you find this helpful for you THANK YOU AND HAPPY LEARNING:)
Get Answers For Free
Most questions answered within 1 hours.