How many bits would be required to encode decimal numbers 0 to 9999 in straight binary codes?
A. 12
B. 14
C. 16
D. 18
Answer:C
How many bits would be required to encode decimal numbers 0 to 9999 in straight binary codes?
A. 12 B. 14 C. 16 D. 18
Explanation: Total number of decimals to be represented = 10000 = 104 = 2n (where n is the number of bits required) = 213.29. Therefore, the number of bits required for straight binary encoding = 14.