Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A phone message is 160 characters long, spaces included. The phone can store it with 8 bits a character (ASCII) or with 16 bits a character (a Unicode form).
A character set gives each character a binary code. ASCII uses 7 bits (128 codes), usually one byte a character; the letters are in order and a small letter is 32 more than its capital. Unicode has far more characters, including other languages and emojis, so it needs more bits per character. Bits for a text characters bits per character.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Given. 160 characters, at 8 or at 16 bits a character.
Step 1. ASCII. bits, which is bytes.
Step 2. Unicode. bits, which is bytes.
Step 3. The difference. more bits.
Check. The Unicode form uses twice the bits per character, so it should be twice the size. .
Answer: (a) 160 bytes. (b) 320 bytes. (c) 1280 more bits.
Log in to join the discussion.
Loading…