Computer Science for IGCSE & O level - Data Representation (Section 4 - No. 8)
What is the result of shifting the binary number 1010 two places to the left?
0010
1000
101000
1010000
Explanation
Shifting 1010 (10 in decimal) two places left results in 101000. However, because of the register constraints, depending on the register size, it will be equal to 1000 (8 in decimal) if the register is 8 bits long and the last two bits are discarded.
Comments (0)
