wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

How many 1's are present in the binary representation of 3×512+7×64+5×8+3?

A
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
9
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
11
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 9

1's are present in the binary representation of 3×512+7×64+5×8+3=9.

(3 × 512 + 7 × 64 + 5 × 8 + 3) = 1536 + 448 + 40 + 3 = 2027 (2027)10=(011111101011)2.

So we can see from above result the number of digit 1 in binary representation of the given expression is 9.

Ones' 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. The ones' complement of the number then behaves like the negative of the original number in some arithmetic operations.



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