How many bits would be required to encode decimal numbers 0 to 9999 in straight binary codes?

Ngân Lam

New member
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: b
Explanation: Total number of decimals to be represented = 10000 = 10$^{4}$ = 2$^{n}$ (where n is the number of bits required) = 2$^{13.29}$. Therefore, the number of bits required for straight binary encoding = 14.
 

Tìm kiếm

Back
Top