A programmer is testing a program that requires a positive value between 1 and 100 inclusive to be entered. The range check in the program is to be tested. Identify three different types of test data to be used. For each type of test data, give an example of the value(s) to be used and the expected outcome. Type 1 Example Outcome Type 2 Example Outcome Type 3 Example Outcome
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2024). The mark or mark type is shown in brackets.
- One mark for test data type, one mark for matching example and one mark for matching outcome (Max nine)
- normal (1) e.g. 25 (1) accepted (1)
- extreme (1) 1/100 (1) accepted (1)
- abnormal (1) e.g. 125 (1) rejected (1)
- boundary (1) 1 and 0 // 100 and 101 (1) first value is accepted, and second value rejected (1)
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →