TK Study

Software Engineering › Key terms › Y11 OOP › Stub

Stub

Term Key terms bank Y11 OOP

Definition

A simple placeholder subroutine, which usually returns a fixed value, standing in for code not yet written so the rest of the program can be tested.

Example: getRate() returns 0.1 until the real rate lookup is finished.

Found in: syllabus, school notes, past SDD papers.

Short version to memorise (key terms bank)

Placeholder for an unfinished module.

Where it is used in the test

Syllabus area: Y11 OOP.

Question types it can appear in

No past question in this bank is linked to this term yet. It can still be tested through the question types above.

Study links

How to use it in an answer

A model sentence

General advice, built from the definition and example above

“A simple placeholder subroutine, which usually returns a fixed value, standing in for code not yet written so the rest of the program can be tested.” Then apply it: getRate() returns 0.1 until the real rate lookup is finished.

In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.

Command words used with it

General advice

No linked question shows the command word for this term. Across the past short answer questions in this bank the words used most are: Explain, Outline, Describe, Compare, Classify, Analyse. Check the actual word in your question.

Technique for the question types

Common mistakes

General advice
  • Use the term exactly as the syllabus words it, then link it to the scenario in the question; the 2025 feedback repeatedly rewards using the stimulus.
  • Answer the command word: outline gives main points only, explain gives a reason or cause, discuss gives both sides.

Same group in the syllabus: Clear and uncluttered mainline · One logical task per subroutine · Ease of maintenance · Regular backup · Unit testing · Subsystem testing · System testing · Black box testing · White box testing · Grey box testing · Quality assurance