Cambridge International AS & A Level: Computer Science
Cambridge International AS & A Level: Computer Science
Cambridge International AS & A Level: Computer Science
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 October/November 2021 series for most
Cambridge IGCSE™, Cambridge International A and AS Level 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.
Var2 AvgWindSpeed
MOD(INT(Turnout2018) * 3, 4) 0
Breakpoints
• Point set where code stops running
Single stepping
• One line of code is run and then it pauses
PROCEDURE Frequency()
CountA ← 0
CountE ← 0
CountI ← 0
CountO ← 0
CountU ← 0
Index ← 1
ENDPROCEDURE
CaseCounter ← 0
CLOSEFILE FileName
ENDPPROCEDURE
Description:
• (Copy of) value is passed
• Any local changes made are lost when the module terminates // does not
overwrite structure being passed
PROCEDURE SafetyCheck()
DECLARE Count : INTEGER
DECLARE Index : INTEGER
CONSTANT TreeCount = 20
Count ← 0
FOR Index ← 1 TO TreeCount // 20
IF TreeAngle[Index] > 36
THEN
Count ← Count + 1
ENDIF
ENDFOR
IF Count <= MainTrigger
THEN
OUTPUT "Maintenance not needed"
ELSE
OUTPUT "Maintain " & NUM_TO_STRING(Count) &
" trees"
ENDIF
ENDPROCEDURE
CONSTANT TreeCount = 20
CONSTANT SafeLimit = 36
Found ← FALSE
ENDIF
ENDFOR
ENDPROCEDURE
Quantity C // D
BookingID A
ItemCost D // C
TotalCost E
BookingDate B
Pseudocode solution:
DECLARE Location : ARRAY [1:10000] OF STRING
DECLARE Index : INTEGER
Example:
Start
Counter = 1
No
IS Counter
Return −1 <= 10000?
Yes
IS No Counter =
Location[Count
Counter + 1
er] = Code?
Yes
Return Counter
End
Index ← StartPos
GeoCode ← ""
EndOfGeoCode ← FALSE
RETURN GeoCode
ENDFUNCTION
Const TREECOUNT = 20
Const SAFELIMIT = 36
Found = False
Q4 (b): Pascal
Q4 (b): Python
def CheckTree(TreeRef):
#DECLARE Index : INTEGER
#DECLARE PreviousAngle, Angle : INTEGER
#DECLARE PreviousStatus, NewStatus: STRING
#DECLARE Found : BOOLEAN
TREECOUNT = 20
SAFELIMIT = 36
Found = False
Index = StartPos
GeoCode = ""
EndOfGeoCode = False
Q6 (c): Pascal
begin
Index := StartPos;
GeoCode := '';
EndOfGeoCode := False;
Q6 (c): Python
Index = StartPos
GeoCode = ""
EndOfGeoCode = False
return GeoCode