Testing: Cambridge IGCSE practice
Normal, boundary and erroneous data. 11 questions in the style of the Cambridge IGCSE 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 whole numbers from 1 to 100 inclusive. Which of these is extreme test data?
- 100
- 101
- 50
- abc