9618_s23_ms_21
9618_s23_ms_21
9618_s23_ms_21
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 2023 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 descriptors
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.
Error 2: No Error
1(c)(i) 2
Expression Evaluation
2(a) 4
1 Both prompts
2 Both inputs using correct identifiers as given in question, MyChar and
MyCount
3 Initialise MyString to empty string and subsequent output after loop
4 Loop MyCount iterations including decrement MyCount
5 Use of Concatenate or equivalent pseudocode statement inside loop
Max 4 Marks
Structure: Record
Advantage:
A set of data / all data related to one customer
of different types
is held under a single identifier/entity
3(a)(ii) A (1D) array of records // An array of the given type could be used 2
NewString ""
FOR Index 1 TO LENGTH(OldString)
ThisChar MID(OldString, Index, 1)
IF ThisChar = Char1 THEN
ThisChar Char2
ENDIF
NewString NewString & ThisChar
NEXT Index
RETURN NewString
ENDFUNCTION
Mark as follows:
1 Function heading and ending, including parameters and return type
2 Declaration of local variables used including loop counter
3 Loop for length of OldString
4 Extract char and test in a loop
5 Use of concatenate to build NewString replace char if necessary,
in a loop
6 Return NewString after reasonable attempt
Max 2 marks
Description:
1 Testing carried out by a small group of (potential) users
2 Users will check that the website/software works as required / works in
the real world //User will identify errors in the website/software
3 Users will feedback (problems) / suggestions for improvement
4 Problems / suggestions identified are addressed (before the program is
sold)
6 PROCEDURE Mix() 6
DECLARE Count, Total ThisNum : INTEGER
DECLARE ThisUser, ThisSample : INTEGER
ENDPROCEDURE
Mark as follows:
Max 6 Marks
Module: GetOverdueLoan()
Use: Identifies an overdue book
Module: IdentifyStudent()
Use: Identifies a student (with an overdue book)1
Module: GetStudentEmail()
Use: Gets the email address of a student with an overdue book
Module: CreateEmail()
Use: Generates an email to a student with an overdue book
Module: SendEmail()
Use: Sends an email to a student with an overdue book
7(b)(ii) 3
IF SuppExists(ThisString) THEN
RETURN FALSE // SupplierCode already exists
ENDIF
FOR Index 1 TO 5
ThisChar TO_LOWER(MID(ThisString, Index, 1))
IF ThisChar < 'a' OR ThisChar > 'z'THEN
RETURN FALSE
ENDIF
NEXT Index
RETURN TRUE
ENDFUNCTION
Mark as follows:
NotFound TRUE
CLOSEFILE "Stock.txt"
RETURN NotFound
ENDFUNCTION
Mark as follows:
Max 7 marks
8(d) Append 1