Software Engineering › Key terms › Y11 OOP › Unit testing
Unit testing
Term Y11 OOP
Definition
Testing one subroutine, method or class on its own to check it works as intended.
Example: Test calculateGST() with several inputs.
Found in: school notes.
Where it is used in the test
Syllabus area: Y11 OOP.
Question types it can appear in
- Multiple choice: Pick the option that matches the definition or example.
- Matching or table: Match it to its description, example or category.
- Fill in the blanks: Choose this term to complete a statement or table.
- Short answer: Define, outline or explain it and tie it to the scenario.
No past question in this bank is linked to this term yet. It can still be tested through the question types above.
Study links
- Flashcard: Unit testing in The Object-Oriented Paradigm (Year 11) · study that set
- Memorise: Testing and code quality (Year 11)
- Notes: Quality assurance, testing methods and test data (The Software Engineering Project (Year 12))
- Notes: Explore tools used to develop ideas and generate solutions, including brainstorming,… (The Software Engineering Project (Year 12))
How to use it in an answer
A model sentence
“Testing one subroutine, method or class on its own to check it works as intended.” Then apply it: Test calculateGST() with several inputs.
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
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
- Multiple choice: Read all four options, rule out wrong ones, pick one; no penalty for guessing so never leave blank.
- Matching or table: Tick or match each statement to the right column (for example ORM v SQL, SAST v DAST).
- Fill in the blanks: Choose the right word from a list; use exact syllabus terms.
- Short answer: One clear point per mark, use the stimulus and course terms, and answer the command word.
Common mistakes
- 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.
Related terms
Same group in the syllabus: Clear and uncluttered mainline · One logical task per subroutine · Stub · Ease of maintenance · Regular backup · Subsystem testing · System testing · Black box testing · White box testing · Grey box testing · Quality assurance