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 ahead/The need for reusable program components

The need for reusable program components

The need for reusable program components.

2.1.2 Thinking ahead

Practise exam questions

Thinking ahead — Note 4 of 4

Candidates need to understand why reusable program components (such as subroutines, classes and libraries) are needed. Candidates should understand the benefits of reuse, such as reduced development and testing time, and identify where components could be reused in a solution.

What you need to know

Reusable program components are pieces of code, such as subroutines, classes and libraries, that can be used in more than one place or more than one program. Planning for reuse saves development time, because code is written and tested once, and improves reliability.

What to know

  • Benefits: saves development time because the code is already written and need not be rewritten; components have already been tested, so they are more reliable; consistent behaviour across programs; easier maintenance because a fix is made in one place.
  • Drawbacks: a component may need adapting to fit a new problem; making code general can take longer initially; compatibility issues with different versions.
  • Prebuilt libraries: tested code, often optimised by experts, that you don't have to write yourself. If a question asks about using a library, give library benefits like these, not general benefits of subroutines.
  • Good reusable components have clear inputs (parameters), outputs (return values) and documented preconditions, and do not rely on global variables.
  • In OOP, a class is a reusable component: many objects can be made from one class, inheritance lets a new class extend it without rewriting it, and encapsulation hides how it works, so its internals can change without breaking code that uses it, as long as its public methods stay the same.

Key terms

Reusable component

A self-contained piece of code (e.g. a subroutine, class or library module) designed so it can be used in different parts of a program or in other programs.

Exam technique

  • Tip:When identifying reusable components in a scenario, pick tasks that are repeated or common to many programs, e.g. validating input or sorting a list.
  • Mistake:Writing 'saves time', 'quicker', 'easier' or 'more efficient' on its own. Say HOW: e.g. 'less debugging, because the subroutine has already been used successfully in another program'.

Past exam questions

  • June 2023Paper 2Q4(c)2marks
  • June 2022Paper 2Q1(e)2marks
  • June 2018Paper 2Q2(d)2marks

Ready to test yourself?

Practise 2.1.2 questions
← Previous noteThe nature, benefits and drawbacks of caching2.1.2 Thinking aheadNext topic →Identify the components of a problem2.1.3 Thinking Procedurally

Back to Thinking ahead

Thinking ahead

Note 4 of 4

  1. 1Identify the inputs and outputs for a given situation
  2. 2Determine the preconditions for devising a solution to a problem
  3. 3The nature, benefits and drawbacks of caching
  4. 4The need for reusable program components
Topic overview