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

© 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).

Knowledge/A Level/H446/01 Computer systems/Software Development/Writing and following algorithms

Writing and following algorithms

1.2.3 Software Development

Practise exam questions

Software Development — Note 3 of 3

Candidates need to be able to write algorithms using pseudocode and/or program code. Candidates need to be able to follow the code as shown in the OCR pseudocode guide, but are not expected to write code in this syntax. Candidate’s code is not expected to be syntactically correct, but must use appropriate code structures.

What you need to know

An algorithm is a sequence of steps to solve a problem. You need to be able to write algorithms in pseudocode or program code, and follow (trace) algorithms written in OCR's pseudocode style to work out what they do. You may also be given code with errors and asked to find and correct them, or be asked to apply a process described in words by hand.

What to know

  • You can write algorithms in pseudocode or a high-level language. Your code does not need to follow OCR syntax exactly, but must use correct programming structures and be unambiguous.
  • You must be able to READ the OCR pseudocode style (see appendix 5d), e.g. for i = 0 to 7 ... next i, while ... endwhile, if ... then ... elseif ... else ... endif.
  • Tracing: work through an algorithm line by line, recording the value of each variable and any output in a trace table. If you apply a process described in words by hand, show the result after EACH stage, not just the final answer.
  • Typical logic errors to look for in given code: a loop that runs past the end of the data (e.g. for i = 1 to nums.length in largest reads one item too many), the wrong variable used or output, a reversed comparison (== instead of !=), a missing parameter, and the wrong variable after next. Trace with sample values to find them. If a loop must stop when EITHER of two things happens (the item is found, or the data runs out), it should keep looping only while BOTH are false, so the condition needs and, not or. When following pointers, check the code uses the CURRENT position, not the start, and checks for the end before moving on.
  • Algorithms can also be shown as flowcharts using standard symbols.

Code examples

OCR pseudocode: find the largest value in an array
text
function largest(nums)
    max = nums[0]
    for i = 1 to nums.length - 1
        if nums[i] > max then
            max = nums[i]
        endif
    next i
    return max
endfunction

Key terms

Algorithm

A finite sequence of well-defined steps that solves a problem.

Exam technique

  • Tip:When writing an algorithm, initialise variables, use meaningful names and indent consistently so the examiner can follow your logic.
  • Mistake:Forgetting that OCR's for i = 0 to 7 INCLUDES 7 (8 iterations), unlike Python's range(0, 7).
  • Tip:To correct an error, give the line number AND the full corrected line. A line number on its own scores nothing. Any correction with equivalent logic is accepted.

Past exam questions

  • June 2026Paper 2Q8(b)(iii)4marks
  • June 2025Paper 2Q6(d)4marks
  • June 2024Paper 2Q9(e)4marks
  • November 2021Paper 2Q8(b)(v)3marks
  • November 2020Paper 2Q6(d)(i)3marks
  • June 2018Paper 1Q8(b)2marks
  • June 2018Paper 2Q5(b)(ii)2marks

Software Development

Note 3 of 3

  1. 1Waterfall lifecycle, agile methodologies, extreme programming, spiral model and RAD
  2. 2The relative merits and drawbacks of different methodologies and when they might be used
  3. 3Writing and following algorithms
Topic overview

Ready to test yourself?

Practise 1.2.3 questions
← Previous noteThe relative merits and drawbacks of different methodologies and when they might be used1.2.3 Software DevelopmentNext topic →The need for and characteristics of a variety of programming paradigms1.2.4 Types of Programming Language

Back to Software Development