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

The 2's complement of a binary no. is obtained by adding _______ to its 1's complement.

A
0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
10
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
12
No worries! We‘ve got your back. Try BYJU‘S free classes today!
E
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 1

The 2's complement of a binary no. is obtained by adding 0 to its 1's complement.

The ones' complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number (swapping 0s for 1s and vice versa). The ones' complement of the number then behaves like the negative of the original number in some arithmetic operations.

The two's complement of zero is zero: inverting gives all ones, and adding one changes the ones back to zeros (since the overflow is ignored). Furthermore, the two's complement of the most negative number representable (e.g. a one as the most-significant bit and all other bits zero) is itself.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Operations on Sets
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon