CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

A number N is stored in a 4-bit 2's complement representation as

a3 a2 a1 a0

It is copied into a 6-bit register and after a few operations. The final bit pattern is
a3 a3 a2 a1 a0 1

The value of this bit pattern in 2's complement representation is given in terms of the original number N as

A
32 a3+2N+1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
32 a32N1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
2N1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
2N+1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 2N+1
Given number is
a3 a2 a1 a0
in 2's complement form.

We know that in 2's complement form if we copy MSB at left of MSB any times the number remains unchanged.

So, a3a2a1a0=a3a3a2a1a0=N

When we left shift a number by 1 bit then it is multiplied by 2, So, a3a3a2a1a00=2N

Now,
a3a3a2a1a00+1=a3a3a2a1a01=2N+1

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Mathematical Induction
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon