Cambridge International AS & A Level: Computer Science 9618/23
Cambridge International AS & A Level: Computer Science 9618/23
com
Published
This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of the
examination. It shows the basis on which Examiners were instructed to award marks. It does not indicate the
details of the discussions that took place at an Examiners’ meeting before marking began, which would have
considered the acceptability of alternative answers.
Mark schemes should be read in conjunction with the question paper and the Principal Examiner Report for
Teachers.
Cambridge International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes for the May/June 2024 series for most
Cambridge IGCSE, Cambridge International A and AS Level and Cambridge Pre-U components, and some
Cambridge O Level components.
These general marking principles must be applied by all examiners when marking candidate answers.
They should be applied alongside the specific content of the mark scheme or generic level
descriptions for a question. Each question paper and mark scheme will also comply with these
marking principles.
the specific content of the mark scheme or the generic level descriptors for the question
the specific skills defined in the mark scheme or in the generic level descriptors for the question
the standard of response required by a candidate as exemplified by the standardisation scripts.
Marks awarded are always whole marks (not half marks, or other fractions).
marks are awarded for correct/valid answers, as defined in the mark scheme. However, credit
is given for valid answers which go beyond the scope of the syllabus and mark scheme,
referring to your Team Leader as appropriate
marks are awarded when candidates clearly demonstrate what they know and can do
marks are not deducted for errors
marks are not deducted for omissions
answers should only be judged on the quality of spelling, punctuation and grammar when these
features are specifically assessed by the question as indicated by the mark scheme. The
meaning, however, should be unambiguous.
Rules must be applied consistently, e.g. in situations where candidates have not followed
instructions or in the application of generic level descriptors.
Marks should be awarded using the full range of marks defined in the mark scheme for the question
(however; the use of the full mark range may be limited according to the quality of the candidate
responses seen).
Marks awarded are based solely on the requirements as defined in the mark scheme. Marks should
not be awarded with grade thresholds or grade descriptors in mind.
Note: No marks are awarded for using brand names of software packages or hardware.
1(b) 4
Pseudocode expression Evaluates to
MID("Random", 2, 3) "and"
5 + DAY(10/11/2023) 15
IS_NUM("45000") TRUE
(20 MOD 3) + 1 3
ALTERNATIVE:
Mark as follows:
1. Reference to Batch[ThisIndex].Weight
2. A valid check for one boundary
3. A valid check for other boundary with correct logic operator
3(b) 5
Zone 1
Zone 2
Zone 3
Zone 4
Zone 5
PROCEDURE TwoParts()
DECLARE NextNum, Average : REAL
TotalA 0.0 // 0
TotalB 0.0 // 0
REPEAT
INPUT NextNum
TotalA TotalA + NextNum
UNTIL NextNum = 0
REPEAT
INPUT NextNum
TotalB TotalB + NextNum
UNTIL NextNum = 0
Mark as follows:
1. Procedure heading and ending
2. Declare all local variables
3. Initialise TotalA and TotalB
4. First conditional loop until zero entered, summing TotalA // Loop until
both parts (sequences) have been entered
5. Second conditional loop until zero entered, summing TotalB // Loop
summing appropriate Totals
6. Calculation of average and output with a message // Calculation of the
average for the values making up the two totals and both output with a
suitable message
Marks as follows:
1 mark for array
1 mark for 20 reals
Count-controlled loop
the number of iterations is known
1 The functions will return the same value every time they are called
2 ... because Label / the parameter value does not change within the loop
Alternative:
6(b)(ii) The progress display will more accurately show the progress of the task 1
Mark as follows:
1 mark for a reasonable attempt to explain
2 marks for full explanation including context
7(b) 6
8(a) Example: 7
RETURN ""
ENDFUNCTION
Mark as follows:
8(b) Example: 8
Index 1
LineNum 0
CLOSEFILE FileName
ENDPROCEDURE
Mark as follows: