Question 5(a)(ii) 2016 · May-June · Paper 42 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 5
Part (a)
(ii)
Show text version of question
Question 5
Part (a)
(ii)
written as a function CalculateGrade.
The function:
- has a single parameter Mark of INTEGER data type
- returns the grade awarded Grade of STRING data type
The logic for calculating the grade is as follows:
Mark Grade Under 40 FAIL 40 and over and under 55 PASS 55 and over and under 70 MERIT 70 and over DISTINCTION
The programmer designs the following table for test data:
Mark Description Expected result (Grade) Normal Abnormal Extreme/Boundary
(ii)
State why this table design is suitable for black box testing.
...........................................................................................................................................
.......................................................................................................................................[1]
Question 12
Why this question appears here
71% assigned-topic match · Software development › Program development life cycle
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_s16_qp_42.pdf
