Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

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

Pseudocode

Create, interpret, correct, complete, and refine algorithms using: Pseudocode

2.1.2 Designing, creating and refining algorithms

Practise exam questions

Designing, creating and refining algorithms — Note 3 of 7

Complete, write or refine an algorithm

What you need to know

Pseudocode is a simplified, informal way of describing an algorithm that is closer to human language than programming code, but structured like code. OCR uses its own Exam Reference Language as pseudocode in exams. You need to be able to write, read, complete, correct, and refine algorithms written in pseudocode, including using sequence, selection, and iteration.

What to know

  • Pseudocode is not a real programming language but follows a structured format similar to code.
  • OCR exams use the OCR Exam Reference Language as their pseudocode standard. In Section A of Paper 2 any clear form is accepted (pseudocode, a flowchart, ERL or a high-level language), but Section B questions that ask you to write or refine code need ERL or a high-level language.
  • You should be able to write new algorithms and complete partially written ones in pseudocode.
  • You should be able to identify and correct errors in pseudocode algorithms.
  • Pseudocode uses keywords like if/then/else/endif, for/next, while/endwhile, do/until.
  • Nesting means placing one construct inside another, for example an if statement inside a loop.

Code examples

OCR Pseudocode: Selection and iteration
text
// Ask user for a number between 1 and 10
valid = False
while valid == False
    num = input("Enter a number 1-10: ")
    num = int(num)
    if num >= 1 AND num <= 10 then
        valid = True
    else
        print("Invalid, try again.")
    endif
endwhile
print("You entered: " + str(num))

Exam technique

  • Mistake:Writing the opposite of x > y as x < y. That misses the case where the two are EQUAL: the opposite of x > y is x <= y. Check that every value, including equal ones, goes down a branch.
  • Tip:When you turn a flowchart into pseudocode, follow each branch out of its decision rather than reading the boxes from top to bottom. Each output must sit only on the branch where it should happen.

Ready to test yourself?

Practise 2.1.2 questions
← Previous noteStructure diagrams2.1.2 Designing, creating and refining algorithmsNext note →Flowcharts2.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 3 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

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

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