3.3 - data representation (5 + 8) Flashcards
3.3.5 - Character Encoding 3.3.8 - not finished
define a character set
all the characters a computer can use with their corresponding binary code used to represent each character
why were binary codes created?
typing out 1s and 0s takes too long, so binary codes were created to represent each character
(you press character and it is converted into binary)
how many bytes is one character in ASCII?
and so how many bits?
1 character = 1 byte
7 bits
how many characters are there in ASCII?
128
why was Unicode created?
for languages that used a different alphabet set to the English language
how many characters can be represented using 8 bits?
and what would this type of character set be called?
256
extended ASCII
what number codes for A to Z in ASCII?
65 to 90
what number codes from a to z in ASCII?
97 to 122
convert 88 into hexadecimal
1) do 88/16 = 5
2) calculate the remainder = 8
3) then convert 8 to hexadecimal (which is also 8)
FINAL ANSWER - 58
what is Unicode (in terms of storage)?
8 to 32 bits
what is the equation to calculate the total number of bits stored (uncompressed)?
7 (ASCII bits per character) x total frequency of (all) characters
what is the equation to calculate the total number of compressed bits - huffman’s compression?
- addition of total bits used = x
x times by frequency
similarities between Unicode and ASCII?
they both use the same codes up to 127
why do we compress a file?
- it is too big for us to store or transmit to someone else
- reduce size of file on hard drive
what happens when you compress a file?
the structure of the data is manipulated + the size is smaller