Cambridge IGCSE · Topic 4.2
IGCSE Computer Science 0478 / Topic 4 / IGCSE

Everything in one place.

Programmers rarely write code in a plain text editor. An IDE puts the editor, the translator, a place to run the program and tools for finding errors into one application. Learn the seven common functions of an IDE and how each one helps.

The key idea

An integrated development environment (IDE) is software that provides the tools a programmer needs to write, translate, test and debug program code in one place. Common functions are: a code editor, a run-time environment, translators (a compiler and/or interpreter), error diagnostics, auto-completion, auto-correction and prettyprint. Together they make programs quicker to write and errors quicker to find and fix.

IDE ▶ Run 1FORCount ← 1 TO 5 2OUTPUTCuont 3NEXTCount suggestion: Count Error, line 2: identifier Cuont not declared error diagnostics panel code editor withcolour coding andindentation (prettyprint) auto-completion /auto-correction
Fig. 1: an IDE window: the editor highlights an error on line 2, suggests a fix, and the diagnostics panel reports it
Section 01

What an IDE is for.

Without an IDE a programmer would type code in one program, translate it in another and run it in a third. An IDE integrates them.

Examiner trap

Saying an IDE "helps you write code" earns little. Name the function and explain how it helps, e.g. auto-completion suggests the rest of an identifier, so it is typed faster and without spelling mistakes.

Section 02

Seven functions.

Learn each function with a one-line description of how it helps the programmer.

FunctionWhat it does and how it helps
Code editorlets the programmer type and edit code, often with line numbers and colour-coded keywords
Run-time environmentlets the program be run (executed) and tested inside the IDE, showing its output and any run-time errors
Translatorsa built-in compiler and/or interpreter turns the code into machine code so it can run
Error diagnosticsfinds errors and reports where they are and what is wrong, e.g. highlighting the line, so they are fixed quickly
Auto-completionsuggests how to finish a keyword or identifier as it is typed, e.g. Cou... offers Count
Auto-correctionautomatically corrects common mistakes as code is typed, e.g. a misspelt keyword
Prettyprintdisplays the code with colour coding and consistent indentation, so its structure is easy to read
Examiner trap

Auto-completion and auto-correction are different. Auto-completion finishes what you are typing; auto-correction fixes a mistake you have made.

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

What does IDE stand for?

Quick check+10 XP

Which IDE function shows code with colour coding and consistent indentation?

Quick check+10 XP

Which IDE function suggests the rest of an identifier as you type?

Quick check+10 XP

What is the purpose of the run-time environment in an IDE?

Section 03

Name the function.

Questions often describe what an IDE does and ask you to name the function.

Worked example Match the function
Name the IDE function: (a) keywords such as WHILE appear in blue and the loop body is indented; (b) typing Tot shows a list containing Total; (c) the line with a missing bracket is underlined in red with a message; (d) the program is executed and its output appears in a window.
  1. (a) Colour coding and indentation make the structure clear: prettyprint.
  2. (b) Suggesting the rest of an identifier: auto-completion.
  3. (c) Locating and describing an error: error diagnostics.
  4. (d) Running and testing the program inside the IDE: run-time environment.
Answer: (a) prettyprint (b) auto-completion (c) error diagnostics (d) run-time environment
Your turn
A programmer types ENDIFF and the IDE changes it to ENDIF. Which function is this, and how does it help?
Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

An IDE underlines a line in red and displays "missing ENDWHILE". Which function is this?

Exam style+20 XP

Which is the role of an IDE?

Exam style+20 XP

Which IDE function would automatically change PRITN to PRINT?

Exam style+20 XP

Why does an IDE include a translator?

Skill unlocked

IDEs, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
The role of an IDE and its seven common functions: code editor, run-time environment, translators, error diagnostics, auto-completion, auto-correction and prettyprint.