System Credits 0 / 22
System Rank Script Kiddy

Programming Languages and IDEs

paper2.5.1

Question 1 [3 Marks]
Tick (✓) one box in each row to identify the type of language described.
[3]
Description High-Level Language Assembly Language Machine Code
Instructions are represented by binary patterns (e.g., 10110011).
Uses mnemonics (e.g., LDA, ADD) to represent instructions.
Code is portable and can run on many different processor types.
Description High-Level Language Assembly Language Machine Code
Instructions are represented by binary patterns (e.g., 10110011).
Uses mnemonics (e.g., LDA, ADD) to represent instructions.
Code is portable and can run on many different processor types.
✅ Mark Scheme

Row 1: Machine Code (✓)
Row 2: Assembly Language (✓)
Row 3: High-Level Language (✓)

Score:
Question 2 [1 Marks]
A programmer is using an IDE to write code. They type the command prnit("Hello") instead of print("Hello").
The IDE underlines this code in red before the program is run.

State the type of error the IDE has identified.
[1]
✅ Mark Scheme

Syntax Error

Score:
Question 3 [4 Marks]
A software company is releasing a new calculator app for smartphones. They have chosen to use a Compiler rather than an Interpreter to translate the final code.

Explain two reasons why a Compiler is the better choice for distributing this software to customers.
[4]

Reason 1: .....................................................................................................
Reason 2: .....................................................................................................
✅ Mark Scheme

Any two points + explanation:
1. Creates an executable file (1) - User doesn't need translator installed (1).
2. Protects source code (1) - Customers cannot read or edit proprietary code (1).
3. Faster execution (1) - Translation is already complete (1).

Score:
Question 4 [3 Marks]
Most modern IDEs include a Run-Time Environment (RTE).

Describe the function of a Run-Time Environment and explain why it is beneficial for a programmer during development.
[3]
✅ Mark Scheme

- Function: Allows the program to be executed inside the IDE (1).
- Benefit: Helps test for logic/runtime errors (1) without needing to compile separately (1).

Score:
Question 5 [2 Marks]
A developer is writing firmware for a washing machine's microcontroller. The memory available is extremely small (2KB).

Identify which type of language (High-level or Low-level) would be most appropriate and give one reason for your choice.
[2]

Language Type: .............................................................................................
Reason: ........................................................................................................
✅ Mark Scheme

- Language: Low-level (or Assembly).
- Reason: More memory efficient / smaller code size (1) or allows direct control of hardware (1).

Score:
Question 6 [6 Marks]
Compare High-level languages and Low-level languages.
In your answer, you must refer to:
  • Translation requirements.
  • How the code interacts with the computer hardware.
  • Readability for the human programmer.
[6]
[Image of levels of programming language abstraction from high-level to hardware]
✅ Mark Scheme

L3 (5-6 marks): Covers all 3 points with precise terminology.
- Translation: High needs Compiler/Interpreter; Low (Assembly) needs Assembler.
- Hardware: High is portable; Low is machine dependent.
- Readability: High uses English-like keywords; Low uses binary/mnemonics.

Score:
Question 7 [3 Marks]
Explain why an Interpreter is often preferred by students when learning to write code for the first time.
[3]
[Image of interpreter executing code line-by-line vs compiler translating entire file]
✅ Mark Scheme

- Executes code line-by-line (1).
- Stops immediately at an error (1).
- Makes it easier to find/debug errors (1).
- Allows running partial code (1). (Max 3).

Score: