← Computer Science

Translators and IDEs

A computer can only run instructions written in machine code, so programs written by people must be translated first. This lesson explains what compilers, interpreters and assemblers do, how they differ, and the features an Integrated Development Environment gives a programmer to write and debug code.

Slide 1 / 4

Why code must be translated

Why code must be translatedHigh-levele.g. Pythonhuman-readableTranslatorsystem softwareMachine code10110001runs on CPUThe CPU can only execute machine code (binary)
  • A processor can only execute instructions written in machine code, which is made up of binary patterns of ones and zeros.
  • People write programs in high-level languages such as Python because these are easier for a human to read, write and understand.
  • High-level code must therefore be translated into machine code before the processor can carry out the instructions.
  • A translator is system software that converts program code from one form into another, most often into machine code the computer can run.

Check you've got it

0/4

1. Why must a program written in a high-level language be translated before it runs?

2. Which statement correctly describes how a compiler works?

3. What does an assembler translate?

4. Which IDE feature helps a programmer locate and understand mistakes as they type code?

Practise real exam questions on this

Type your answer, see your mark against the mark scheme in seconds. Free, 5 a day.

Start practising →

Teaching this topic?

Mark your whole class's answers and see who's stuck, for £19 a month.

See the class plan →

Free revision content. Multiple-choice answers are marked instantly. Written answers are marked by AI on /free-mark.