Computer Science (AS & A Level) · Oct / Nov 2024 · Paper 21 · Question 8
9618
As printed in the paper
The question as text
An exam paper has a maximum of 75 marks. One of five pass grades (A to E) is assigned, depending on the mark obtained. The lowest mark for a given grade is known as the grade boundary. For example, if the grade boundary for an A grade is 65 marks, then any candidate who achieves a mark of 65 or above will be awarded an A. A grade of U is awarded for marks below the E grade boundary. The five grade boundaries are stored in a global 1D array GradeBoundary of type integer. For example: Element Value Comment GradeBoundary[1] 65 The minimum mark for an A grade. GradeBoundary[2] 57 The minimum mark for a B grade. GradeBoundary[3] 43 The minimum mark for a C grade. GradeBoundary[4] 35 The minimum mark for a D grade. GradeBoundary[5] 27 The minimum mark for an E grade. A global 2D array Result of type integer contains candidate marks for the exam. Each row relates to one candidate. Column 1 contains the candidate mark and column 2 contains the unique candidate ID. For example, for the fourth and fifth candidates: Element Mark Element ID Result[4, 1] 56 Result[4, 2] 1074832 Result[5, 1] 54 Result[5, 2] 2573839 There are more rows in the array than candidates who sit the exam. Any unused rows will be at the end of the array. Candidate papers that are given a mark within two marks of any grade boundary must be checked. For example, given the values in the example grade boundaries above, any paper that was awarded between 41 and 45 marks (inclusive) would need to be checked. A program is being written to identify papers that need to be checked. The programmer has defined the first program module as follows: Module Description CheckMark() • called with a parameter of type integer representing a candidate mark • returns TRUE if the mark is within 2 of any of the five grade boundaries, otherwise returns FALSE
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
8(a)[6]
8(b)[8]
8(c)[1]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

