Ch 2. Internal Data Representation of Characters, Integers, Real Numbers

Ch 2. Practice Solutions

1. 107
3. 7 bits
5. No
9. a) [68, 97, 116, 97, 49, 50, 51]
11. a) ASCII: 100 bytes (but cannot store Chinese or emojis); UTF-8: 250 bytes; UTF-16: 260 bytes
11. b) UTF-8
17. 0 to 15
19. 0000
21. a) Maximum: 32,767; Minimum: 32,768
25. a) 11010011 
27. a) Two’s complement
29. Sign bit, exponent, mantissa
31. 100010
37. a) 12.0
39. a) 1 10000010 10110100000000000000000 
45. [latex]00000_{2} = 0_{10}[/latex].
47. [latex]1.1754942 \times 10^{-38}[/latex]
53. a) No