Revise360The course

Paper 2 · Topic 2.5

2.5 Programming languages and IDEs

High- and low-level languages, translators and IDE tools. Taught in 5 lessons, each with its own 360° room, alongside the unit's PowerPoints, worksheets and lesson plans, and assessed on paper at the end.

The Language choice workshop lesson room.
2.5 · Lesson 2 Language choice workshop

What this topic covers

5 lessons, in teaching order.

Each lesson opens with retrieval from earlier lessons, is taught from its PowerPoint, and is explored in its room, where every station has a short explainer and questions. The topic follows the OCR J277 specification, section 2.5.

  1. Lesson 1: Language level lab

    Why might two programmers choose different languages to solve the same problem?

    Pupils learn to

    • Compare high-level and low-level languages.
    • Explain why high-level source needs translation.
    • Justify language choices using project requirements.

    In the room High-level languages · Low-level languages · Machine code · The need for translation · Moving between devices · Choosing the right level · Final challenge

  2. Lesson 2: Language choice workshop

    Why might a school app and a small hardware routine need different language choices?

    Pupils learn to

    • Compare development effort at different language levels.
    • Explain portability and hardware control.
    • Justify language choices using project requirements.

    In the room Reading and changing code · Development time · Moving to another system · Control of hardware · Speed and memory · A justified recommendation · Final challenge

  3. Lesson 3: Translation studio

    Why can a CPU not simply follow a Python source file as written?

    Pupils learn to

    • Explain why programs need translation.
    • Compare how compilers and interpreters work.
    • Justify a translator choice using the task requirements.

    In the room Why translate? · The compiler route · The interpreter route · Error reporting · Running and distributing · Choosing a route · Final challenge

  4. Lesson 4: IDE control room

    What help would you want from the software you use to write programs?

    Pupils learn to

    • Identify the four main IDE facilities.
    • Explain how each facility supports programming.
    • Use editing, diagnostics and execution tools in an IDE.

    In the room Tools in one place · Writing source code · The run-time environment · Diagnostic messages · Translators in an IDE · Using the Python editor · Final challenge

  5. Lesson 5: Language review HQ

    Which tool or language choice would most help you build a reliable revision app?

    Pupils learn to

    • Recall language levels and translator behaviour.
    • Select IDE tools for specific problems.
    • Write explanations linked to the needs of a scenario.

    In the room Language decisions · Source and execution · Translator choices · Editing and diagnostics · Translation and running · Writing an explanation · Final challenge

Key words

The words to use in an answer.

High-level language
A programming language that uses English-like words and familiar maths and hides the details of the processor, so code is easier to write, read and maintain.
Low-level language
A programming language close to the processor's own instructions, such as machine code or assembly language, giving precise control of hardware but harder to write.
Assembly language
A low-level language that uses short mnemonics such as LOAD, ADD and STORE, where each line usually stands for one machine code instruction.
Machine code
Instructions written in binary that a processor can execute directly; each processor family only understands its own instruction set.
Instruction set
The complete list of binary instructions that a particular family of processors is built to recognise and carry out.
Development time
The time programmers spend designing, writing, testing and fixing a program, which is different from how long the finished program takes to run.
Hardware control
Deciding exactly what the processor and memory do, such as which register or memory location holds each value; low-level languages give the programmer this.
Compiler
A translator that converts the whole of a program's source code into machine code before it runs, producing an executable file and listing the errors it finds.
Interpreter
A translator that translates and runs source code one line at a time, stopping at the first error it meets, without producing an executable file.
Executable file
A file of machine code made by a compiler that can be run again and again without the source code or the compiler.
IDE
Integrated development environment: one application that brings together the tools for writing, translating, running and debugging programs, such as an editor and error diagnostics.
Editor
The part of an IDE where source code is typed and changed, with helpers such as syntax highlighting, auto-completion and automatic indentation.
Syntax highlighting
An editor feature that shows different parts of the code, such as keywords, strings and comments, in different colours so slips are easier to spot.
Auto-completion
An editor feature that suggests the rest of a variable name, function or keyword as it is typed, saving time and reducing spelling mistakes.
Run-time environment
The part of an IDE that executes a program and handles its input and output, so the programmer can watch how the program behaves.
Error diagnostics
Messages from an IDE that identify a detected problem in the code, usually giving the type of error, a description and the line number.

Common mistakes

Where pupils go wrong.

Ideas that cost marks in this topic, each with the idea that replaces it.

  • A compiler runs a program one line at a time.That is an interpreter. A compiler translates the whole program into machine code before it runs.
  • Assembly language is the same as machine code.Assembly uses short mnemonics; an assembler translates it into machine code.
  • An IDE is a programming language.An IDE is a set of tools for writing programs: an editor, error diagnostics, a run-time environment and a translator.
  • High-level languages are worse because the computer cannot run them directly.They need translating, but they are easier to write, read and maintain, and run on different kinds of computer.

Using it

In the lesson, at home and in intervention.

For teachers

  • The unit's lesson PowerPoints, worksheets and lesson plans, and the end-of-topic assessment with its mark scheme, in the Teacher Portal.
  • Set any lesson for a class with a due date, and see who has finished.
  • Reports show each station as Secure, Revise or Focus from pupils' first attempts, so a small group can go straight back to the right one.
  • Ask for a teacher key

For pupils

  • Sign in with the card your teacher gives you and open any lesson in this topic.
  • Write each key fact in your own words on the worksheet before you check it.
  • In Quiz Mode, pick this topic: every lost mark names the station that teaches it.
  • Pupil sign in