Number Systems and Codes - Technical MCQs

Q1:

Convert the decimal number 151.75 to binary.

A 10000111.11

B 11010011.01

C 00111100.00

D 10010111.11

ANS:D - 10010111.11

The system work as below ( x2 increment -- divede 2 decrement).
0.25/2= 0.125
0.5/2 = 0.25
1/2 = 0.5
1
1x2 =2
2x2 = 4
4x2 = 8
8x2 = 16
16x2 = 32
32x2= 64
64x2=128.

128, 64, 32, 16, 8, 4,2,1 ---- 0.5, 0.25, 0.125.
So, 1 0 0 1 0 1 1 1 ---- 1 1 = Ans# 10010111.11.