Question
Physics Question on Logic gates
The binary number 10111 is equivalent to the decimal number
A
19
B
31
C
23
D
22
Answer
23
Explanation
Solution
Hence, (10111)B=1×24+0×23+1×22
+1×21+1×20
=16+0+4+2+1=23.
The binary number 10111 is equivalent to the decimal number
19
31
23
22
23
Hence, (10111)B=1×24+0×23+1×22
+1×21+1×20
=16+0+4+2+1=23.