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/02 Algorithms and programming/Thinking Procedurally/Identify sub-procedures necessary to solve…

Identify sub-procedures necessary to solve a problem

Identify sub-procedures necessary to solve a problem.

2.1.3 Thinking Procedurally

Practise exam questions

Thinking Procedurally — Note 4 of 4

Candidates need to understand the use and purpose of sub-procedures in a program and identify where they may be used. Candidates should be able to write pseudocode, code and/or flowcharts for sub-procedures, using parameters where appropriate, and interpret or complete structure diagrams.

What you need to know

Sub-procedures (subroutines) are named blocks of code that carry out a specific task. Identifying where they are needed makes programs modular, easier to test and easier to maintain.

What to know

  • Look for tasks that are repeated, or that form a distinct, self-contained part of the solution.
  • Use parameters to pass in the data a sub-procedure needs and return values to pass results back.
  • Sub-procedures can be shown on a structure diagram, with each box representing a subroutine.

Code examples

Identifying sub-procedures for a quiz program
text
procedure runQuiz()
    score = 0
    for q = 1 to 10
        question = getQuestion(q)
        answer = askUser(question)
        if checkAnswer(q, answer) then
            score = score + 1
        endif
    next q
    showResult(score)
endprocedure

Key terms

Sub-proceduresubroutine

A named, self-contained block of code that performs a specific task and can be called from elsewhere in the program.

Exam technique

  • Tip:When writing sub-procedures, use parameters rather than global variables, and use the parameters that are passed in rather than asking for new input.
  • Tip:When asked to identify or describe sub-procedures, name each one and say what it does, e.g. 'checkAnswer: compares the user's answer with the stored answer and returns True or False'. Stick to the part of the program the question asks about, and don't repeat one it already gives.
  • Tip:For a benefit of decomposing into sub-procedures, state the benefit and then explain its effect, e.g. 'each sub-procedure can be tested on its own before being combined, so a fault is easier to locate'. 'Easier to code' alone is not enough.

Past exam questions

  • June 2023Paper 2Q8(b)2marks
  • June 2019Paper 2Q4(b)(i)6marks
  • June 2017Paper 2Q3(a)(i)1mark

Ready to test yourself?

Practise 2.1.3 questions
← Previous noteDetermine the order of the steps needed to solve a problem2.1.3 Thinking ProcedurallyNext topic →Identify the points in a solution where a decision has to be taken2.1.4 Thinking Logically

Back to Thinking Procedurally

Thinking Procedurally

Note 4 of 4

  1. 1Identify the components of a problem
  2. 2Identify the components of a solution to a problem
  3. 3Determine the order of the steps needed to solve a problem
  4. 4Identify sub-procedures necessary to solve a problem
Topic overview