📘 CodingMarble Learn

Information Technology That Supports Our Lives

Computers keep every picture, song and message as bits (0 and 1). A network sends these bits as small packets from one device to another, and information security uses passwords, locks and good habits so only the right people can read them.

🎬 Step-by-step story

  1. A picture on a screen is a grid of tiny squares. Here is a small picture with 16 squares: some dark, some light.
  2. A computer cannot keep a picture. It keeps numbers. Dark square = 1, light square = 0. Each row becomes four digits, and each digit is one bit.
  3. To send the picture, the computer cuts it into small packets. Here, each row is one packet. The packets travel through a router, a box that points each packet the right way.
  4. All four packets reach your friend. The friend's computer puts them back in order and shows the same picture. A network is just devices joined so they can pass bits.
  5. A spy tries to read the packets on the way. Now the lock is on: the packets turn grey and the spy sees only a lock. Hiding data like this is called encryption.
  6. Free play: tap squares to draw your own picture, press Send, and switch the lock on and off. Watch the bits change when the picture changes.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why only 0 and 1? Why not more digits?

A tiny switch has two states, on and off, and that is easy and very reliable to build. Many switches together can make any number or picture.

How does a colour photo work if dark = 1 and light = 0?

Colour photos use more bits per pixel, for example 24 bits, to say how much red, green and blue. Our 3D uses 1 bit to keep it simple.

Why cut data into packets?

Small packets can use any free road and a lost one can be sent again, without sending the whole file once more.

What if the packets arrive in the wrong order?

Each packet has a number. The receiver sorts them by number before showing the picture.

Can a spy see the lock-protected data?

The spy can see the packets pass, but encrypted data looks like nonsense without the secret key.

Is a password enough?

A long unique password is good, but adding a two-step code makes it much safer if the password leaks.

Digital representation: everything is bits

Computers have tiny switches that are either off or on. We write off as 0 and on as 1. One 0 or 1 is a bit. Eight bits together are a byte.

Pictures: a screen is made of tiny squares called pixels. Each pixel is stored as a number. In a black-and-white picture, one bit per pixel is enough: 1 = dark, 0 = light. A 4 × 4 picture needs 16 bits.

Numbers: bits can make any number. With 4 bits there are 16 patterns (0000 to 1111). The places count 8, 4, 2, 1 from the left, so 1011 = 8 + 0 + 2 + 1 = 11.

Sound, text and video are also saved as long rows of bits. This is called digital information. Digital copies can be copied again and again without getting worse.

How networks work

A network is a group of devices joined together so they can share data. Your home Wi-Fi is a small network. The internet is a huge network of networks.

Packets may take different roads. At the end the receiver puts them in order using the numbers. If a packet is lost, it is asked for again.

Information security

Information security means keeping data private (only the right people read it), correct (nobody changes it) and available (you can use it when needed).

Try it

Try it in the 3D: tap four squares to make a new picture. First guess: what will the bits of row 1 be? Then look at the bits shown below the picture.

Try it at home: draw a 5 × 5 grid on paper. Shade a letter, then write 1 for shaded and 0 for blank in each row. Give the numbers to a friend and ask them to draw your letter. You just sent a picture as bits.

Key formulas and definitions

Worked examples

1. A black-and-white picture is 8 pixels wide and 8 pixels tall. How many bits does it need?

8 × 8 = 64 bits. That is 64 ÷ 8 = 8 bytes.

2. Write 1101 as an ordinary number.

Place values 8, 4, 2, 1. So 8 + 4 + 0 + 1 = 13.

3. A message is cut into 5 packets. 1 packet is lost on the way. How many packets must be asked for again?

Only the lost one: 1 packet. The other 4 are kept and the new one is put in its place by its number.

Common mistakes

Practice quiz

1. One 0 or 1 is called a…
2. How many bits are in 1 byte?
3. What does a router do?
4. Which is the strongest password?
5. Scrambling data with a secret key is called…

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a bit in simple words?

A bit is the smallest piece of computer data: one 0 or one 1.

How does the internet send a photo?

The photo becomes bits, is cut into packets, and the packets travel through routers to the other device, which joins them again.

How can I keep my information safe online?

Use strong different passwords, turn on two-step check, do not click unknown links, and keep backups and updates.

Learn first

Learn next

Related lessons

All Computer Science lessons