Question: Computers store more than just numbers in binary. But how can binary numbers represent non - numbers such as letters and symbols? As it turns

Computers store more than just numbers in binary. But how can binary numbers represent non-numbers such as letters and symbols?
As it turns out, all it requires is a bit of human cooperation. We must agree on encodings, mappings from a character to a binary number.
A simple encoding
For example, what if we wanted to store the following symbols in binary?
We can invent this simple encoding:
Binary Symbol
\[\texttt{0}\texttt{1}\]
\[\texttt{10}\]
\[\texttt{11}\]
Let's call it the HPE encoding. It helps for encodings to have names, so that programmers know they're using the same encoding.
If a computer program needs to store the symbol in computer memory, it can store
\[\texttt{10}\] instead. When the program needs to display
\[\texttt{10}\] to the user, it can remember the HPE encoding and display instead.
Computer programs and files often need to store multiple characters, which they can do by stringing each character's encoding together.
A program could write a file called "msg.hpe" with this data:
\[\texttt{0}\texttt{10111111010}\]
A program on another computer that understands the HPE encoding can then open "msg.hpe" and display the sequence of symbols.
CHECK YOUR UNDERSTANDING
What sequence would the program display?
Choose 1 answer:
Choose 1 answer:
(Choice A)
A
(Choice B)
B
(Choice C)
C
Explain
The HPE encoding only uses 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!