Past-paper question · 2016 May-June · Paper 43 · Q5(a)(ii)

Question 5(a)(ii) 2016 · May-June · Paper 43 · 1 mark

Original past-paper question for 5(A)(II)
Original past-paper question for 5(A)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 5(A)(II)

Official answer for Question 5

Part (a)

(ii)

✓
(The programmer is) concerned only with the input (i.e. the mark) to the function and 1
✓
monitoring the expected output (i.e. the grade)
✓
// can compare expected result and actual result

Mark scheme 9608_s16_ms_43.pdf →

Show text version of question

Question 5

Part (a)

(ii)

A
program calculates the exam grade awarded from a mark input by the user. The code is

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

Topic relevance

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_43.pdf

Keep practising this topic