logo

AQA A-Level Computer Science practice

A program accepts a whole-number quantity from 1 to 20 inclusive. Design a suitable set of test data covering normal, boundary and erroneous data. For each value, identify its type and explain why it has been selected.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Aspects of software development

Exam-style question

Try this first

A program accepts a whole-number quantity from 1 to 20 inclusive. Design a suitable set of test data covering normal, boundary and erroneous data. For each value, identify its type and explain why it has been selected.

Answer and explanation

Concise answer

A suitable set could be: 10 as normal data, because it is a typical valid quantity; 1 and 20 as boundary data, because they are the lower and upper limits of the valid range; 0 and 21 as erroneous data, because they are outside the…

Why this is correct

The test data should cover all three required categories. Normal data checks typical valid input, boundary data checks values at the edges of the permitted range, and erroneous data checks invalid values outside that range. Selecting both boundaries and invalid values on either side gives useful coverage of the specified input range.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions