TK Study

Software Engineering › Key terms › Y11 Programming Fundamentals › Path coverage

Path coverage

Term Y11 Programming Fundamentals

Definition

Choosing test data so every path through the code (each branch and loop) runs at least once.

Example: Include one value that makes the IF true and one that makes it false.

Found in: syllabus.

Where it is used in the test

Syllabus area: Y11 Programming Fundamentals.

Question types it can appear in

Where it has appeared in the paper

The Software Engineering Project (Part C). Part letters follow each paper’s own layout.

Related past questions

These are the questions the flashcard set links to this term. Open each one and compare your answer with its marking criteria.

Study links

How to use it in an answer

A model sentence

General advice, built from the definition and example above

“Choosing test data so every path through the code (each branch and loop) runs at least once.” Then apply it: Include one value that makes the IF true and one that makes it false.

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

Worked answers from the marking guidelines

Familiarisation Q5 (3 marks): Testing (test data) (3 marks): criteria and sample answer

Criteria

3: Test data that thoroughly tests the algorithm, with expected outputs and reasons for inclusion. 2: Tests most boundaries and/or paths, with most expected outputs and reasons. 1: Some relevant information.

Sample answer

85 -> H (testing greater than 80). 80 -> H (boundary value 80). 60 -> P (between 50 and 80). 50 -> P (boundary value 50). 45 -> N (testing 'otherwise', below 50).

Open the question page

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: Quality criteria for evaluating code · Syntax error · Logic error · Runtime error · Debugging tools · Breakpoint · Single line stepping · Watch window (variable watch) · Debugging output statements · Boundary values · Faulty and abnormal data · Code optimisation

← Parameter and argumentIn Y11 Programming FundamentalsPeer checking →