大象传媒

Can a computer think for itself?

We can use computers and other digital devices to do lots of different things. We can send messages, go shopping, watch a video or play a game.

Many of the machines and devices we use every day have a computer inside them. They are called digital devices.

Although a computer can do lots of clever things, it can't think for itself like we can. We have to give it a list of rules and instructions so that it knows what to do.

We call a list of instructions an algorithm.

The list of instructions we give to a computer is called a computer program. It is a special type of algorithm that a computer can understand.

The program tells your computer or digital device what to do.

Computers have a memory where they store all the programs that we give them.

Back to top

What is code?

Computers can't understand everyday words like we can. We have to write the computer program using a computer language, or code.

Code can be written using:

  • symbols
  • words
  • numbers

Sometimes writing a computer program is called coding.

It is important that the program has no mistakes and all the instructions are in the right order.

Here are some computer programs written using different types of code.

Written code in a series of blocks
Image caption,
Code written with words
Code written in symbols for a computer game
Image caption,
Code using symbols
Illustration showing code written using words and numbers
Image caption,
Code using words and numbers
Back to top
An illustrated character watching her parent programming 540

Who writes the programs?

The computers and digital devices we use every day have a set of programs to make them work.

These programs are made by people called computer programmers. Sometimes they are called coders.

An illustrated character watching her parent programming 540

We can learn to write our own computer programs. There are coding languages that are easy for beginners to use.

We can write a program to make a mouse move around the screen, or play a squeak sound when we click it.

What will you make happen with your computer program?

Back to top

Watch: What is coding?

Back to top

Glossary

Here are the meanings of some important words:

Computer 鈥 A device that can follow instructions stored in its memory.
Digital device 鈥 A machine that has a computer inside.
Code 鈥 A language that a computer can understand.
Computer programmer 鈥 Someone whose job it is to write computer programs.
Program 鈥 A list of instructions a computer can understand.
Memory 鈥 The place in a computer where information is stored.

Back to top

Activities

Back to top

Play Bitesize Primary games. game

Fun and educational primary games in science, maths, English, history, geography, art and design, computing and modern languages.

Play Bitesize Primary games
Back to top

More on Computing science

Find out more by working through a topic