Programming languages and translators

CPUs only understand machine code, but people prefer to write in languages like Python. Translators bridge the gap.

Practise this lesson free (6 questions)

More tools

Low-level languages

Machine code: binary instructions the CPU runs directly.
Assembly language: short mnemonics such as LDA or ADD, each matching one machine code instruction. It is translated by an assembler.
Low-level code gives direct control of hardware and memory and can be very fast and compact. It is specific to one type of processor and hard to write. Used for device drivers and some embedded systems.

High-level languages

Languages such as Python, Java and C# use English-like statements.
One statement may become many machine code instructions.
They are easier to write, read and debug, and they are portable: the same code can run on different types of processor once translated.

Compiler or interpreter?

CompilerInterpreter
Translates the whole program into machine code before it runsTranslates and runs the code one line at a time
Creates an executable file that runs quickly without the translatorNeeds the interpreter every time the program runs
Reports errors after translating the whole programStops at the first error, which helps debugging
Source code can be kept privateSource code must be shared to run it
Worked example

A games company wants to sell its game without sharing its source code. Which translator should it use?

  1. A compiler produces a standalone executable file.
  2. Customers can run it without seeing or needing the source code.

Answer: A compiler

Key idea

Machine code runs directly; assembly is translated by an assembler. High-level languages are easier and portable. Compilers translate everything first into a fast executable; interpreters translate line by line and stop at the first error.

Key words
Assembler
Translates assembly language into machine code.
Binary
Base 2: the number system that uses only the digits 0 and 1.

All GCSE and International GCSE Computer Science key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Which is a feature of a high-level language?

    1. It gives direct control of registers
    2. It uses English-like statements and is easier to read
    3. It runs without translation
    4. It only works on one type of processor
    Show the answer

    Answer: It uses English-like statements and is easier to read

    High-level code is readable and portable.

  2. Why is assembly language NOT portable?

    1. It is too long
    2. It cannot be translated
    3. It is written for one type of processor
    4. It only runs on laptops
    Show the answer

    Answer: It is written for one type of processor

    Assembly is tied to one processor's instruction set.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? โ†’

Related lessons