Character Encoding Flashcards
(15 cards)
What is character encoding?
Character encoding is used to assign binary values to characters so they can be read by humans.
Character encoding acts as a dictionary for computers to look up which human character corresponds to a given binary value.
What is the oldest character encoding standard?
ASCII
ASCII represents the English alphabet, digits, and punctuation marks.
What binary value does the lowercase ‘a’ represent in ASCII?
01100001
This mapping is done for all characters in the English alphabet, numbers, and some special symbols.
How many values does ASCII use out of the possible 256?
127
ASCII was sufficient for a long time but eventually became inadequate.
What is the most prevalent character encoding standard used today?
UTF-8
UTF-8 includes the ASCII table and allows for a variable number of bytes.
Why can’t emojis be represented with a single byte?
Because a single byte can only store one character.
UTF-8 allows characters to be stored in more than one byte, enabling emoji representation.
What standard is UTF-8 built off of?
The Unicode Standard
The Unicode Standard helps represent character encoding in a consistent manner.
What is the RGB color model?
A color model that uses red, green, and blue to create a full range of colors.
Mixing these colors in different combinations allows representation of various shades.
How many characters are used to represent colors in the RGB model?
Three characters
Each character represents a shade of the color, affecting the pixel color on the screen.
Fill in the blank: Character encoding is like a _______.
dictionary
It helps computers match binary values to human-readable characters.
True or False: UTF-8 can only represent characters using one byte.
False
UTF-8 allows for a variable number of bytes to represent characters, including emojis.
What range of values can character encoding represent?
256 possible values
This includes letters, numbers, punctuation marks, and emojis.
What do we use to represent color in computers?
Color models
The RGB model is a basic example commonly used.
How does mixing colors in the RGB model work?
By combining red, green, and blue in various amounts to create different colors.
This mixing is similar to how colors are combined in the physical world.
What allows us to represent everything we see on a computer screen?
Combinations of zeros and ones
These combinations enable the display of letters, images, and videos.