A number in 4-bit two's complement representation is X3X2X1X0. This number when stored using 8-bits will be
A
0000X3X2X1X0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
1111X3X2X1X0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
X3X3X3X3X3X2X1X0
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
¯X3¯X3¯X3¯X3X3X2X1X0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is CX3X3X3X3X3X2X1X0 To extend number of bits in 1's compliment or 2's compliment copy MSB bit.
So, When the 4-bit number X3X2X1X0 is stored using 8-bit, MSB is copied. So, The required 8-bit number is X3X3X3X3X3X2X1X0.