Cambridge IGCSE™: Computer Science 0478/21 October/November 2020
Cambridge IGCSE™: Computer Science 0478/21 October/November 2020
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 2020 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.
Section A
Array yearsWithoutClaim
Data type integer
Use to store the % discount
Sample answer
PRINT "Are you a new customer Y/N?"
INPUT new
discount ← 0
IF new = "Y" DO
IF age >= 26 AND age <= 70
THEN
IF yearsWithoutClaim >=2
THEN
discount ← price * 0.1
price ← price * 0.9
ENDIF
ENDIF
PRINT "New price", price
PRINT "Extra discount for new customer", discount
ENDIF
1(d)(i) Explanation 4
Any four from:
MP1 Provide a prompt and input to check if additional driver required
MP2 Check response with IF/REPEAT/WHILE/CASE statement for yes
MP3 … input age of additional driver
MP4 … Use of IF / REPEAT etc. to validate age
MP5 … use the age input to find / look up appropriate price increase
MP6 … description of how the price to pay now is calculated
MP7 … description of how the price to pay now is displayed including the use
of a suitable message
For no
MP8 … no output required or suitable message output
1(d)(ii) Description 3
Any three from:
MP1 Use a variable (quotes) to keep a running total of the number of quotes
provided
MP2 Ask, using prompt with input, customers if they are going to purchase
the insurance
MP3 Use another variable (policies) to keep a running total of the number of
insurances bought / not bought
MP4 Use these to calculate the percentage policies/quotes*100
Section B
Example answer:
A value that can change during the execution of a program
A named value that cannot change during the execution of a program
Variable example - using a counter for example counter ← counter + 1
Constant example – a static value that can be used for checking for example
< maxAge
V W X Y Z A B OUTPUT
5 4 6 2 1 56 1 Valid
9 3 2 1 6 40 7 Invalid
7 6 1 5 1 61 6 Invalid
0 0 0 0 0
4(b) • (Use first four digits input to) calculate a check digit 2
• Check if the check digit input is valid
5(a) 6 fields 2
9 records
5(c) 4
Field: Airline name Number of Head office
countries
Sort:
Show:
one mark for correct fields and correct table names, must have the three
columns required, ignore another column provided the show row is not ticked
and there are no criteria set for that column
one mark for correct show row
one mark for correct number of countries criteria
one mark for correct head office criteria