Languages and IDEs (GCSE & IGCSE Computer Science): Revision Notes and Worksheets

GCSE and IGCSE Computer Science languages and IDEs: high-level and low-level languages, assembly language, compilers and interpreters, and IDE tools.

Diagram comparing a compiler and an interpreter: the compiler translates the whole source code once into an executable file of machine code that runs on its own; the interpreter translates and runs the source code one line at a time, every time the program runs.

The CPU can only run machine code, but almost nobody writes programs in binary. This guide covers GCSE and IGCSE languages and IDEs: high-level and low-level languages, assembly language and assemblers, compilers and interpreters, and the tools an IDE gives a programmer. Each part has a worked example and a worksheet for your exam board.

OCR J277 students: you need P1, P3 and P4, and only the points marked GCSE or Both boards. Part P2, assembly language and assemblers, is on the Cambridge IGCSE 0478 syllabus only; OCR J277 lists assemblers as not required. Cambridge students need all four parts.

What does languages and IDEs cover for OCR and Cambridge?

Programs are written in a programming language, translated into machine code and developed in an IDE. Both boards cover this. OCR J277 has it in 2.5 (2.5.1 Languages and 2.5.2 The IDE) and examines it on Paper 2. Cambridge IGCSE 0478 has it in 4.2 (4.2.1 to 4.2.5) and examines it on Paper 1. The table below is based on the OCR J277 specification (version 3.1) and the Cambridge IGCSE 0478 syllabus for 2026-2028, as checked in November 2026.

Part

Topic

OCR J277

Cambridge 0478

P1

High-level and low-level languages (both boards)

2.5.1

4.2.1

P2

Assembly language and assemblers (IGCSE only)

not required

4.2.2

P3

Compilers and interpreters (both boards)

2.5.1

4.2.3, 4.2.4

P4

IDE tools (both boards)

2.5.2

4.2.5 (adds auto-completion, auto-correction, prettyprint)

P1: What is the difference between high-level and low-level languages?

Both boards. A high-level language uses English-like keywords and statements, such as if, while and print, so it is close to the way people write. One high-level statement translates into many machine code instructions. It must be translated into machine code before the CPU can run it.

A low-level language is close to the CPU's own instructions. There are two kinds: machine code, the binary instructions the CPU executes directly, and assembly language, which writes those instructions as short codes (more in P2). Low-level code is written for one type of processor.

High-level language

Low-level language

Reading and writing

Easier to read, write and understand

Hard to read and write

Debugging

Easier to find and fix errors

Harder to find and fix errors

Machine independence

Machine independent: the code can be translated for different types of processor

Processor-specific: it only runs on the type of processor it was written for

Hardware

No direct control of the hardware

Direct manipulation of the hardware and memory

Speed and memory

The translated code may be slower and use more memory

Can run faster and use less memory

Low-level languages are used where speed, small code or hardware control matter, such as device drivers and embedded systems. High-level languages are used for most other programs.

IGCSE only: Cambridge 0478 lists the advantages and disadvantages under four headings: ease of reading and writing code, ease of debugging code, machine independence and direct manipulation of hardware. Learn the table above by those headings.

GCSE only: OCR J277 asks for the characteristics and purpose of each level of language, and examines them on Paper 2, alongside programming.

Worked example: which level for which job? (both boards)

  • Step 1: a small sensor in a fridge has a tiny memory and must switch a motor on and off quickly. Choose a low-level language: the code can be small and fast, and it can control the hardware directly.

  • Step 2: a company writes a payroll program for office computers that have two different types of processor. Choose a high-level language: it is easier to write and debug, and it is machine independent, so it can be translated for both types of processor.

  • Step 3: one high-level statement, total = price * quantity, becomes several machine code instructions: load price, multiply by quantity, store the result in total. That is 1 statement and 3 instructions.

Practise P1: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

P2 (IGCSE only): What is assembly language and what does an assembler do?

IGCSE only. Assembly language is a form of low-level language that uses mnemonics in place of binary. A mnemonic is a short code that stands for an instruction, such as LDA (load), ADD (add) or STO (store). Generally, one assembly language instruction becomes one machine code instruction.

An assembler is the translator that converts an assembly language program into machine code. A compiler or an interpreter cannot do this job; they translate high-level languages.

Assembly language is much easier to read and write than binary machine code, but it is still specific to one type of processor, and it is still harder to read and debug than a high-level language. Like machine code, it allows direct manipulation of the hardware, so it is used where hardware control, speed or small code matter, such as device drivers and embedded systems. Machine code is the processor's instruction set in binary: see instruction sets and machine code (part A7).

GCSE only: OCR J277 says understanding of assemblers is not required. For OCR, you only need to know that assembly language and machine code are both low-level languages (P1).

Diagram of the three levels of language: a high-level statement is translated by a compiler or interpreter into machine code, and assembly language mnemonics are translated by an assembler into machine code, which the CPU executes directly.

Worked example: reading a short assembly program (IGCSE only)

The mnemonics here are made up for practice. You will not be asked what a particular mnemonic does.

  • Step 1: LDA 20 loads the value stored at memory address 20. Address 20 holds 15.

  • Step 2: ADD 21 adds the value stored at address 21, which holds 27: 15 + 27 = 42.

  • Step 3: STO 22 stores 42 at address 22. The 3 assembly instructions are turned by the assembler into 3 machine code instructions, one each.

Practise P2: Cambridge questions · Cambridge mark scheme

P3: What is the difference between a compiler and an interpreter?

Both boards. A translator converts source code into machine code. It is needed because the CPU can only execute machine code, and code written in a high-level language is not machine code.

A compiler translates the whole program at once, before it is run, and produces an executable file of machine code. The executable can then be run again and again without the compiler and without the source code. If the code has errors, the compiler gives an error report for the whole code and does not produce an executable file.

An interpreter translates and executes the code one line at a time, every time the program is run. It does not produce an executable file. When it reaches an error, it stops execution at that line and reports the error. Once the error is corrected, the program can carry on from that point.

Compiler

Interpreter

Benefits

The executable runs fast; users do not need a translator; the source code is not given away

Errors are reported at the line where they occur; changes can be tested straight away, without translating the whole program

Drawbacks

Compiling takes time; the program must be compiled again after every change; the executable only runs on one type of processor

Slower to run, because each line is translated every time; the interpreter is needed every time the program runs; the source code must be shared

IGCSE only: Cambridge 0478 names these points, so learn them word for word: a compiler provides an error report for the whole code if errors are detected; an interpreter stops execution when an error is found; and an interpreter is mostly used when developing a program, while a compiler is used to translate the final program.

GCSE only: OCR J277 asks for the purpose of translators and the differences, benefits and drawbacks of a compiler and an interpreter. Its translators are compilers and interpreters only.

Worked example: one program, two translators (both boards)

A 10-line program has a spelling mistake on line 4 and another on line 9.

  • Step 1 (interpreter): lines 1 to 3 are translated and run, so their outputs appear. Execution stops at line 4 and that error is reported. The error on line 9 is not found yet; it is only reported after line 4 is fixed and the program runs that far.

  • Step 2 (compiler): all 10 lines are translated first. None of the program runs. One error report lists both errors, on lines 4 and 9, and no executable file is produced until both are fixed.

  • Step 3: after the fixes, the program will be run 500 times in a shop. Compiled, it is translated once; interpreted, it is translated every time it runs, so 500 times. That is why the final program is usually compiled.

Practise P3: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

P4: What tools does an IDE give a programmer?

Both boards. An IDE (integrated development environment) is one program that provides the tools to write, translate, run, test and debug code. For each tool, know what it does and how it helps the programmer.

  • Editor (code editor): lets the programmer enter and edit code. Features such as line numbers, colour-coded keywords and automatic indentation make the code easier to read and errors easier to spot.

  • Error diagnostics: highlight errors and give the line number and a message saying what is wrong, so errors can be found and fixed quickly. Debugging tools such as breakpoints (pause the program at a chosen line), stepping through the code one line at a time and watching the values of variables help to find logic errors.

  • Run-time environment: lets the programmer run the program inside the IDE to test it, see its output and see any errors that happen while it runs.

  • Translator: a built-in compiler and/or interpreter that converts the code into machine code so it can be executed.

IGCSE only: Cambridge 0478 says code editors and adds three more functions:

  • Auto-completion: suggests and completes keywords and identifiers as the programmer types, which saves time and avoids spelling mistakes.

  • Auto-correction: automatically fixes common mistakes, such as a misspelt keyword.

  • Prettyprint: displays code with consistent indentation and colour-coding, so it is easier to read and mistakes stand out.

GCSE only: OCR J277 lists four tools: editors, error diagnostics, run-time environment and translators. You must also have practical experience of a range of these tools in at least one IDE.

Diagram of an IDE window with its tools labelled: the editor with line numbers and colour-coded keywords, the error diagnostics panel showing a line number and message, the run button and output panel of the run-time environment, and the built-in translator.

Worked example: following a program through the IDE (both boards)

A programmer writes a program that converts minutes into hours and minutes.

  • Step 1 (editor): she types the 4 lines of code. The line numbers and colour-coded keywords make the code easy to read.

  • Step 2 (error diagnostics): a message says "Line 4: missing closing bracket". She goes straight to line 4 and adds the bracket.

  • Step 3 (translator and run-time environment): the translator converts the code, and the program runs inside the IDE. She enters 150 and the output shows 2 hours 30 minutes (150 = 2 × 60 + 30), so the test passes. IGCSE only: while typing, auto-completion offered whole keywords and prettyprint kept the layout consistent.

Practise P4: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme

Common exam mistakes in languages and IDEs

  • Saying a high-level language runs faster. Low-level code can run faster and use less memory; high-level code is easier to write, read and debug.

  • Calling assembly language high-level. Machine code and assembly language are both low-level.

  • Writing that a translator converts code "into a language the computer understands". Say machine code (binary).

  • Saying an interpreter produces an executable file. Only a compiler does.

  • Saying a compiler stops at the first error. A compiler reports all the errors for the whole code; an interpreter stops at the first error.

  • (IGCSE) Saying a compiler translates assembly language. That is the job of an assembler.

  • (IGCSE) Mixing up auto-completion (finishes what you are typing) and auto-correction (fixes a mistake you have made).

  • IDE answers that only name a tool. Say how it helps the programmer, for example "shows the line number of the error, so it can be found quickly".

Quick recap

  • P1: high-level: English-like, easier to read, write and debug, machine independent; low-level (machine code and assembly): processor-specific, direct hardware control, can be faster and smaller; four 0478 headings IGCSE only.

  • P2: (IGCSE only) assembly language is low-level and uses mnemonics; an assembler translates it into machine code, generally one instruction to one; not required for OCR J277.

  • P3: a translator converts source code into machine code; a compiler translates the whole program once into an executable file and reports all errors; an interpreter translates and runs line by line and stops at the first error; interpreter for developing, compiler for the final program.

  • P4: an IDE has an editor, error diagnostics, a run-time environment and a translator; auto-completion, auto-correction and prettyprint IGCSE only.

Download the whole module

Frequently asked questions

Is assembly language on the OCR GCSE J277 specification?

Only as a kind of low-level language. OCR J277 covers low-level languages, which include machine code and assembly language, but it says understanding of assemblers is not required. Mnemonics and the assembler are on the Cambridge IGCSE 0478 syllabus (4.2.2).

What is the difference between a high-level and a low-level language?

A high-level language uses English-like statements, is easier to read, write and debug, and is machine independent. A low-level language, machine code or assembly language, is close to the CPU's own instructions, is written for one type of processor, and allows direct control of the hardware.

What is the difference between a compiler and an interpreter?

A compiler translates the whole program at once, before it runs, and produces an executable file. An interpreter translates and executes the code one line at a time every time the program runs, and it does not produce an executable file.

How do a compiler and an interpreter report errors?

A compiler translates all the code first and gives an error report for the whole code, so it can list every error it finds. An interpreter stops execution when it reaches an error and reports that error, so later errors are only found once it is fixed.

Why is an interpreter used to develop a program and a compiler for the final version?

An interpreter shows each error at the line where it happens and lets the programmer test changes straight away. A compiler produces an executable file that runs fast, does not need a translator on the user's computer and does not give away the source code.

What tools does an IDE provide?

An IDE provides an editor to write and edit code, error diagnostics to find and explain errors, a run-time environment to run and test the program, and a translator to convert the code into machine code. Cambridge 0478 also names auto-completion, auto-correction and prettyprint.

Previous module: Robust programs revision notes.

More help: browse the GCSE Computer Science revision hub.