Testing: OCR GCSE practice
Normal, boundary and erroneous data. 11 questions in the style of the OCR GCSE exam.
Sample questions
A program accepts ages from 13 to 19 inclusive. Which of these is boundary test data?
- 15
- 19
- "abc"
- 50
This code tests a validation function with some test data. What does it print?
def valid_mark(m):
return 0 <= m <= 50
for test in [25, 0, 50, 51, -1]:
print(test, valid_mark(test))A program accepts a number of tickets from 1 to 10 inclusive. Which value is boundary test data?
- 5
- 25
- 10
- "ten"