CM VIII - Binary Numbers - BITS and BYTES
Jyoti: How does a computer store music, audio?
Moz: Computer understands only numbers. Hence all data like information, instructions, files, images, sound, video is stored as numbers. How are numbers say for example “234” made of?
Tejas: Digits 2, 3 and 4.
Moz: Right. Since computers only understand numbers made up of digits, the computers are called digital devices.
Jyoti: Does it have some code to represent each letter in the alphabets. Using these it must be saving a text document.
Moz: You are right.
Tejas: TO represent an image each pixel or the coloured dots need to have a code.
Jyoti: Different sounds in a music file have to be given a code.
Moz: Yes. Everything is a number. And these numbers are formed by the two numbers 0 and 1 called the binary numbers.
Tejas: Wow. Only the two numbers. Is it because the components in a computer are all electronic devices?
Moz: You are right. The electronic devices like CPU and RAM, in a computer which store data have parts which can be switched on or off. Off = 0 and On = 1. Using a combination of on and off the data is easily represented. Each of these digit is called a BIT which derives from Binary DigIT.
The following could be codes for some text, or they could be the codes for some pixels in an image, or they could just be numbers.
10100111 10101011
01110010 10101010 00001111
11010101 00101001
Jyoti: Why are they always grouped into 8.
Moz: BITs are usually grouped into a group of 8 and each group is called a Byte.
Tejas; Oh! So when a file has a size of 1 KB then it means the file has 1000 bytes which means 1000 multiplied by 8 = 8000 bits.
Moz: Right. Write down the table of bits and bytes starting from Kilobytes to Terrabytes. Note that bits are abbreviated by 'b' and bytes by 'B'.
Standard unit / Bytes / Bits1 Kilobyte (kB) / 1,000 (one thousand) / 8,000 (8 thousand)
1 megabyte (MB) / 1,000,000 (1 million) / 8,000,000 (8 million)
1 gigabyte (GB) / 1,000,000,000 (thousand million) / 8,000,000,000 (8 thousand million)
1 terabyte (TB) / 1,000,000,000,000 (1 million million) / 8,000,000,000,000 (8 million million)
Concept: Binary numbers
A binary number is formed by the combination of '0' and '1'.
A Bit is a binary digit which can only have the value 0 or 1.
· Bit is derived from the words Binary digIT.
· An example: 1101 is a binary number 4 bits long and can represent data like text, pixels, sound in a computer.
A Byte is a group of 8 bits.
· Bytes are the standard unit of storage in a computer.
· An example: 10110111 is a byte and can represent data like text, pixels, sound in a computer.
Worksheets
1. Fill in the blanks
a) _____ and ______are binary numbers.
b) Binary numbers can represent data like ______, ______and ______in computers.
c) ______and ______are the digits of binary numbers called ______.
d) A group of 8 bits is called a ______.
2. Fill in the number of bytes and bits in the following table:
Standard units / Bytes / bits500 KB
100 MB
5 GB
2 TB