AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Contents · Computing

Coding information and units of information

Lessons 4 · 1 lessons · D.T. Kamaltdinova, D.M. Sayfurov. Informatics and Information Technology, Grade 5 (general editor F.M. Zakirova). “Nashriyot uyi Tasvir”, Tashkent, 2020
4

Coding information. Units of information

Textbook: pp. 17–22
GoalTell coding, decoding and encryption apart and work out the size of information in bits and bytes.
New words
coding: turning information from one form into another with special signs · kodlashencryption: coding information to keep it secret · shifrlashthe smallest unit of information (0 or 1) · bitbyte: 8 bits, enough for one character · bayt
Explanation

A code is a system of agreed signs used to express information. Turning information from one form into another with special signs is coding, and restoring the meaning of coded information is decoding. Coding can be numeric, symbolic or graphic: road signs, musical notes and Morse code (dots and dashes) are all codes. Coding information to keep it secret is encryption and opening it again is decryption; the science that studies this is cryptography. A computer stores all information using only two signs, 0 and 1. One 0 or 1 is one bit, and 8 bits make 1 byte: one letter or digit usually takes 1 byte. Units: 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB, 1 TB = 1024 GB.

UnitValue
1 byte8 bits
1 KB1024 bytes
1 MB1024 KB
1 GB1024 MB
1 TB1024 GB
2³082²142¹022⁰11

0101₂ = 4 + 1 = 5

The buttons flip the bits: 1 means the place value is added, 0 means it is not

💡 Where will I use this?
In real life

Two children exchanged a silent message from far apart: a raised hand meant 1 and a lowered hand meant 0. Even with just two states a message can be passed as a sequence. A computer also stores everything with two signs like these.

Who uses it

A communications engineer turns data into signals, a programmer works with codes, and an information-security specialist protects data by encrypting it.

Try it today

Ask a friend three yes/no questions (for example “Is it raining?”) and answer only by writing 1 for yes and 0 for no.

Worked examples
Each character is 1 byte = 8 bits; 5 × 8 = 40 bits
KITOB
88888
The word “KITOB” has 5 characters. Each character is 1 byte, so its size is 5 bytes, that is 5 × 8 = 40 bits.
An e-mail has 8 paragraphs with 128 characters in each. The number of characters is 8 × 128 = 1024, which is 1024 bytes = 1 KB.
Class activity

“Secret note”: in pairs, pupils encrypt a short word by replacing each letter with the next one in the alphabet (A→B, M→N...) and the partner decrypts it. Then they tap “SOS” in Morse code (three short, three long, three short).

Practice
1
How many bits is 3 bytes?
2
How many different combinations can a 4-bit code make (2 × 2 × 2 × 2)?
3
Code table: 1 = A, 2 = I, 3 = L, 4 = M, 5 = K. Which word is the code “2 3 4”?
4
Why are 3 bits not enough to code characters?
Story of the Week · The Khwarizmi WayA mission for the old bicycleClose the week: all of this week’s subjects in one storyRead →