Character Storage Flashcards
1
Q
What is a character set?
A
- A character set is a table that matches together a character and a binary value.
2
Q
Why are character sets necessary?
A
- They allow computers to exchange data and humans to input characters.
3
Q
ASCII:
A
- A common character set which doesn’t take up too much space.
- ASCII uses 1 byte (8 bits) which gives 256 possible characters.
- Can’t be used for all punctuation symbols or other languages
4
Q
Unicode:
A
- Popular character set because it uses 2 bytes (16 bits) that allow for 65,536 possible characters.
- Allows many different languages to be represented, as well as thousands of symbols and emojis.
- It requires more memory to store each character than ASCII as it uses an extra byte.
5
Q
File Size Calculation:
A
Bits per character * Number of characters