9618/21 October/November 2021 · Question 4 · 7 marks
A sensor value should be an integer from 0 to 40 inclusive. (a) Complete the test plan (test data value, explanation, expected outcome); the first line is 23, normal data, data is accepted. (b) Heaters switch on below 10 and off above 20: complete the state-transition diagram.
Points that gain marks
- (a) 0, boundary data, data is accepted.
- 40, boundary data, data is accepted.
- 41 or more, abnormal data, data is rejected.
- −1 or less, abnormal data, data is rejected.
- (b) Temp < 10 on the arrow from Heaters Off to Heaters On.
- Temp > 20 on the arrow from Heaters On to Heaters Off.
- A label on each state's own loop (the heaters stay as they are) that does not contradict these.
In this lab: Levels 1 and 3 are this question.