Extreme data compared with boundary data

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Extreme data compared with boundary data

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A program accepts whole numbers from 1 to 100. Which list is the EXTREME test data?
A 0, 1, 100 and 101
B 1 and 100
2. A program accepts whole numbers from 1 to 100. Which list is the BOUNDARY test data?
A 0, 1, 100 and 101
B 1 and 100
3. For a range of 1 to 100, which statement is true about the value 1?
A It is only extreme data, never boundary data
B It is both extreme data and boundary data
4. For a range of 1 to 100, the value 101 is which type of test data?
A Boundary data only (it is rejected)
B Extreme data and boundary data
5. A student answers 'Extreme data for 1 to 100 is 0, 1, 100 and 101.' What is wrong with this answer?
A It is the boundary list. Extreme data is only 1 and 100
B Nothing, this is the correct extreme data

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Extreme data: 1, 100 AThis list is incomplete. Boundary data must also include the rejected values next to each limit: 0 and 101.
2Boundary data: 0, 1, 100, 101 BExtreme: 1, 100 | Boundary: 0, 1, 100, 101
3Both lists contain the accepted limit values, so 1 and 100 appear in extreme data and in boundary data CThis is the boundary data list. Extreme data must only include the accepted limits 1 and 100, not the rejected 0 and 101.
4For a range of 1 to 50, the extreme data is just the two accepted limits DExtreme: 1, 50
5Extreme data for 1 to 100: 0, 1, 100, 101 EOnly the accepted values on the limits of the range 1 to 100
6Boundary data for 1 to 100: 1, 100 FThe accepted limit values plus the rejected values just outside each limit

Definitions

extreme vs boundary data

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
// Range check: 1 to 100 // Extreme test data: 1 and ___
2.
// Range check: 1 to 100 // Boundary data: 0, 1, 100 and ___
3.
// Range check: 1 to 100 // Rejected boundary values: _ and 101
4.
// Range check: 1 to 100 // 0 is boundary data but not _______ data
5.
IF Number >= 1 AND Number __ 100 THEN OUTPUT "Accepted" ENDIF

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Range check: 1 to 100
B Extreme data: 0, 1, 100, 101
C Boundary data: 0, 1, 100, 101
Question 2
A Valid range is 1 to 100
B Extreme: 1, 101
C Boundary: 0, 1, 100, 101
Question 3
A Range check: 1 to 50
B Extreme data: 0 and 51
C Boundary data: 0, 1, 50, 51
Question 4
A Test a mark from 0 to 100
B Extreme: 0, 100
C Boundary: -1, 0, 100, 101
D Accepted in both: -1 and 101
Question 5
A Range 10 to 20
B Extreme: 10, 20
C Boundary: 10, 20

Answer Key

Extreme data compared with boundary data
Section A: Quick Questions
Q1
B — 1 and 100
Q2
A — 0, 1, 100 and 101
Q3
B — It is both extreme data and boundary data
Q4
A — Boundary data only (it is rejected)
Q5
A — It is the boundary list. Extreme data is only 1 and 100
Section B: Match the Pairs
Q1
Extreme data: 1, 100 → Only the accepted values on the limits of the range 1 to 100
Q2
Boundary data: 0, 1, 100, 101 → The accepted limit values plus the rejected values just outside each limit
Q3
Both lists contain the accepted limit values, so 1 and 100 appear in extreme data and in boundary data → Extreme: 1, 100 | Boundary: 0, 1, 100, 101
Q4
For a range of 1 to 50, the extreme data is just the two accepted limits → Extreme: 1, 50
Q5
Extreme data for 1 to 100: 0, 1, 100, 101 → This is the boundary data list. Extreme data must only include the accepted limits 1 and 100, not the rejected 0 and 101.
Q6
Boundary data for 1 to 100: 1, 100 → This list is incomplete. Boundary data must also include the rejected values next to each limit: 0 and 101.
Section C: Definitions
Q1
extreme vs boundary data — Extreme data is only the accepted limit values, e.g. 1 and 100. Boundary data has those plus the rejected values next to them: 0, 1, 100 and 101 for a range of 1 to 100.
Section D: Fill in the Blanks
Q1
// Range check: 1 to 100 // Extreme test data: 1 and 100
Q2
// Range check: 1 to 100 // Boundary data: 0, 1, 100 and 101
Q3
// Range check: 1 to 100 // Rejected boundary values: 0 and 101
Q4
// Range check: 1 to 100 // 0 is boundary data but not extreme data
Q5
IF Number >= 1 AND Number <= 100 THEN OUTPUT "Accepted" ENDIF
Section E: Spot the Error
Q1
B — Extreme data is only the accepted limit values, 1 and 100. The list 0, 1, 100, 101 is boundary data, so line 2 should read 'Extreme data: 1, 100'.
Q2
B — 101 is rejected, so it cannot be extreme data. Extreme data is only the accepted limits, 1 and 100.
Q3
B — 0 and 51 are the rejected values next to the limits, so they are boundary data only. Extreme data for 1 to 50 is 1 and 50.
Q4
D — -1 and 101 are rejected, so they appear only in boundary data. The accepted limits 0 and 100 appear in both lists.
Q5
C — Boundary data must also include the rejected values next to the limits, 9 and 21. Without them it is just extreme data.