What is a computer program?

Part ofDigital SkillsComputing

A cartoon girl looking at her phone and smiling with another cartoon girl in a thought bubble dancing

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.

A cartoon girl looking at her phone and smiling with another cartoon girl in a thought bubble dancing
Back to top
A cartoon boy sitting at a desk looking at a laptop

How do we tell a computer 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.

A cartoon boy sitting at a desk looking at a laptop
Back to top

Watch: What is coding?

Back to top
a laptop with a dinosaur game on the screen

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.

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.

a laptop with a dinosaur game on the screen
Back to top

Different types of coding

Code can be written using:

  • symbols
  • words
  • numbers

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

Image gallerySkip image gallerySlide1 of 3, An illustration of code instruction blocks saying "when run", "move forward", "move forward", "turn", "move forward, Code written with words
Back to top

Who writes the programs?

A cartoon man sitting at a desk looking at a laptop, with a little girl behind him smiling with a projected mouse

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.

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.

A cartoon man sitting at a desk looking at a laptop, with a little girl behind him smiling with a projected mouse
Back to top

Key words

Have a look to learn the meaning of some important words.

Back to top

Quiz

Back to top

NEW Dance Mat Typing game! game

Practise your touch-typing skills with the brand-new Dance Mat Typing game.

NEW Dance Mat Typing game!
Back to top

More on Computing

Find out more by working through a topic