✦
✦
Computer Science · Hardware & Systems
Binary Representation
Digital computers represent photos, songs, games and text using two digits: 0 and 1.
💡A Bit Is Like a Switch
🔌 One switch = one bit
Switch OFF means the bit is a 0
Switch ON means the bit is a 1
Groups of bits can represent many kinds of data.
🔤8 Bits Make 1 Byte
Using the ASCII text encoding, a computer reads 01000001 as the letter A. Other characters can require several bytes in a different encoding.
🔘 1 Bita single 0 or 1
🔡 1 Byte8 bits
📄 1 KB1,000 bytes (a short text file)
🎵 1 MB1 million bytes (part of a song)
🎨Pixels & Color Are Binary Too
Red, green and blue values
A pixel is one picture element in a digital image.
This example uses a Red, Green, and Blue value for each pixel, one byte per color channel.
One photo can hold millions of bytes, depending on its dimensions, encoding and compression.
🔑Key Terms
🔢Binary A base-two number system whose digits are 0 and 1.
🔘Bit One binary digit, either 0 or 1.
🔡Byte A group of 8 bits.
🟪Pixel One element in a digital picture. Its value describes the color at that location.
🔟Decimal The base-ten number system uses the digits 0 through 9.
🔁Encoding Turning information into binary so a computer can store it.
⭐
The bit pattern 01000001 represents the letter A in ASCII. A color image can use three values per pixel to represent red, green and blue.
✏️ Computer Science Anchor Chart · Binary: The Language of Computers