Computer ScienceExam code: 0984

Programming Languages and Translators

Software

An Integrated Development Environment (IDE) is a single piece of software that combines all the tools a programmer needs to write, test, debug and run programs.

Without an IDE, a programmer would have to switch between a text editor, a translator (compiler or interpreter) and a debugger as separate programs. An IDE bundles everything into one application.

Common IDEs: PyCharm (Python), IntelliJ IDEA (Java), Visual Studio, Visual Studio Code, Eclipse, Thonny, IDLE, NetBeans.

The common IDE features named in the syllabus

1. Editor

A specialised text editor for writing source code. Useful features include:

  • Syntax highlighting (pretty-print): keywords, strings and comments are shown in different colours to make code easier to read.
  • Auto-completion: the editor suggests the rest of a variable, function or keyword as the programmer types.
  • Auto-indentation: nested blocks line up automatically.
  • Bracket matching: shows which opening bracket pairs with which closing bracket, catching unmatched brackets early.
  • Comment toggling: a keyboard shortcut comments out (or uncomments) several lines at once.
Screenshot of an IDE code editor showing a short Python program with syntax highlighting: the comment is grey, the built-in functions input and print are one colour, and the string literals are another, making the different parts of the code easy to tell apart.
Source: IDE by Save My Exams

2. Error diagnostics

Tools to spot, locate and fix errors:

  • Syntax checking in the background as the programmer types, underlining typos and missing punctuation in real time.
  • Specific error messages that name the line and the kind of error.
  • Suggested fixes for common mistakes.
Screenshot of an IDE showing error diagnostics: a mistake on line 2 is underlined in the editor, and when the program is run a traceback appears in the output panel naming the line and the type of error (a NameError).
Source: IDE by Save My Exams

3. Run-time environment

The IDE can run the program from inside itself and show its output in a panel beside the source code. The programmer does not have to leave the IDE to test changes.

Screenshot of an IDE run-time environment: the source code is on the left and, after pressing Run, the program executes and its input prompt and printed output appear in a panel on the right, without leaving the IDE.
Source: IDE by Save My Exams

4. Translator (built-in compiler or interpreter)

A built-in translator means the programmer can press a button or use a keyboard shortcut to compile and run (for compiled languages) or simply run (for interpreted languages), without having to install the translator separately.

Common exam question

Giving the functions of an IDE

Question: Given that the built-in translator is one function of an IDE, give or describe three other common functions, or explain the purpose of an IDE (3–6 marks).

Asked in 3 of the 17 papers. The credited functions are a code editor (where code is entered and amended), a run-time environment (where the program runs and shows its output), error diagnostics (showing where the errors are), auto-completion (suggesting commands as you type), auto-correction (fixing a minor misspelling in a command) and prettyprint (colouring the key commands).

When the question says give three functions, each feature named earns a mark. When it says describe three ways the IDE helps, for six marks, add what each feature does for the programmer: bare feature names are capped at four. When it says explain the purpose, for four marks, describe it as software for writing, editing, testing and debugging code; it offers features such as auto-completion and also translates the code into machine code.

Other useful IDE features

The syllabus also names auto-completion and prettyprint (covered under the editor above) and auto-correction, which corrects a small spelling mistake in a command. Real IDEs include many more useful features:

  • Debugger with breakpoints, step-through execution, watch windows and variable inspection. Essential for finding logic errors.
  • Version control integration (Git, SVN) so changes can be saved and shared.
  • Refactoring tools that rename variables across a project or restructure code safely.
  • Project management: lets the programmer organise files into projects and folders.
  • Plug-ins and extensions that add support for new languages or frameworks.

Quick check

4 short questions on this note. See what has stuck, and where to look if something hasn't.

About 2 minutes

Build on this topic