Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Paper 2/Designing, creating and refining algorithms

Reference language/high-level programming language

Create, interpret, correct, complete, and refine algorithms using: Reference language/high-level programming language

2.1.2 Designing, creating and refining algorithms

Practise exam questions

Designing, creating and refining algorithms — Note 5 of 7

Complete, write or refine an algorithm

What you need to know

In addition to pseudocode and flowcharts, you should be able to write and work with algorithms using a high-level programming language such as Python or the OCR Exam Reference Language. This means being able to write complete programs, fix bugs in existing code, and refine algorithms to improve their efficiency or correctness.

What to know

  • You can answer Section B exam questions using either the OCR Exam Reference Language or a high-level language like Python.
  • You should be able to translate between pseudocode, flowcharts, and program code.
  • Programs must use the correct syntax of the chosen language to avoid syntax errors.
  • Refining means improving an algorithm to make it more efficient, correct, or readable.
  • Minor syntax errors in exams are not heavily penalised, but logic must be correct.

Code examples

Python: A simple validated input loop
python
# Validated input in Python
age = int(input("Enter your age (0-120): "))
while age < 0 or age > 120:
    print("Invalid age, try again.")
    age = int(input("Enter your age (0-120): "))

print("Your age is " + str(age))

Ready to test yourself?

Practise 2.1.2 questions
← Previous noteFlowcharts2.1.2 Designing, creating and refining algorithmsNext note →Common errors2.1.2 Designing, creating and refining algorithms

Back to Designing, creating and refining algorithms

Revise another OCR GCSE topic: Searching and sorting algorithms, Computational Thinking

Designing, creating and refining algorithms

Note 5 of 7

  1. 1The inputs, processes, and outputs for a problem
  2. 2Structure diagrams
  3. 3Pseudocode
  4. 4Flowcharts
  5. 5Reference language/high-level programming language
  6. 6Common errors
  7. 7Trace tables
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).