Computer Science (0478) · Feb/March 2020 · Mark scheme 22
Cambridge Computer Science (0478) mark scheme for paper 22, Feb/March 2020 — 0478/22/F/M/20, file 0478_m20_ms_22.pdf.
Text of this paper
www.dynamicpapers.com
Cambridge IGCSE™
COMPUTER SCIENCE
0478/22
Paper 2
March 2020
MARK SCHEME
Maximum Mark: 50
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 March 2020 series for most Cambridge
IGCSE™, Cambridge International A and AS Level components and some Cambridge O Level components.
This document consists of 9 printed pages.
© UCLES 2020
[Turn over
0478/22
Cambridge IGCSE – Mark Scheme
PUBLISHED
Generic Marking Principles
March 2020
www.dynamicpapers.com
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.
GENERIC MARKING PRINCIPLE 1:
Marks must be awarded in line with:
•
•
•
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.
GENERIC MARKING PRINCIPLE 2:
Marks awarded are always whole marks (not half marks, or other fractions).
GENERIC MARKING PRINCIPLE 3:
Marks must be awarded positively:
•
•
•
•
•
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.
GENERIC MARKING PRINCIPLE 4:
Rules must be applied consistently e.g. in situations where candidates have not followed instructions or in the application of generic level
descriptors.
© UCLES 2020
Page 2 of 9
0478/22
Cambridge IGCSE – Mark Scheme
PUBLISHED
March 2020
www.dynamicpapers.com
GENERIC MARKING PRINCIPLE 5:
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).
GENERIC MARKING PRINCIPLE 6:
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.
© UCLES 2020
Page 3 of 9
0478/22
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
March 2020
www.dynamicpapers.com
Answer
Marks
Section A
1(a)
Any appropriate constant, for example:
Constant name
noTradeInDiscount
Value
0.05/5
Use
Storing the percentage discount if no car is traded in
3
1(b)
Variable name TradeInValue // any suitable variable name for trade-in amount
4
1(c)
© UCLES 2020
Data type
real/integer
Validation
any two from
• Use of conditional /loop statement / IF … THEN / REPEAT … UNTIL / WHILE
• value input is greater than (or equal to) 10 000/0.1 / less than (or equal to) 100 000/1 / numeric // a value
is actually input // error message for rejected input
• range check // type check // presence check
Any four from:
MP1
Display extra model/choice
MP2
Increase options available to 4
MP3
Extend validation rule / selection statement(s) for input selection
MP4
Store name of extra model e.g. new variable/constant/extra item in array
MP5
Store price of extra model e.g. new variable/ constant/extra item in array
MP6
Change code to calculate price to pay to include extra model
Page 4 of 9
4
0478/22
Question
1(d)
Cambridge IGCSE – Mark Scheme
PUBLISHED
March 2020
www.dynamicpapers.com
Answer
Any five from:
MP1
Calculate cashback for payment method 1
MP2
Calculate monthly payments for payment method 2
MP3
Calculate amount and monthly payments for payment method 3
MP4
Method 1 – output full amount, one payment and cashback
MP5
Method 2 – output full amount, full amount divided by 48 and 48 payments
MP6
Method 3 – output full amount times 1.05, full amount times 1.05 divided by 84 and 84 payments
MP7
Attempt to output showing all 3 payment methods with appropriate messages (MPs 4,5,6 not awarded)
Marks
5
Sample answer:
PRINT "Full Amount ",amountToPay, " to pay. Number of Payments is 1"
PRINT "Cashback ", amountToPay * 0.01
PRINT "Over four years ",amountToPay, " to pay. Number of Payments is 48"
PRINT "Each monthly payment is ", amountToPay / 48
PRINT "Over seven years ",amountToPay * 1.05, " to pay. Number of Payments is 84"
PRINT "Each monthly payment is ", amountToPay * 1.05 / 84
1(e)
© UCLES 2020
Explanation
Any four from:
MP1
Use of selection statement to check if customer chose to pay the full amount
MP2
Consideration of special case where there are no optional extras chosen
MP3
Comparison of 1% of total price to pay with the total cost of optional extras
MP4
Use of selection statement to check for the largest value of cashback or extras /smallest amount to pay
MP5
… display the cost of this option first
MP6
… then display the cost of the other option
Page 5 of 9
4
0478/22
Question
Cambridge IGCSE – Mark Scheme
PUBLISHED
Answer
March 2020
www.dynamicpapers.com
Marks
Section B
2(a)
Error:
• Problem with zero …
• … stored in the negative number array // negative number count increases by 1
Correction:
• Replace ELSE with IF
• IF Number < 0 (THEN)
4
2(b)
Explanation:
• Replace REPEAT … UNTIL with WHILE … DO … ENDWHILE
• Change condition to WHILE Number <> 9999 DO
• Add / Move INPUT Number to before loop // Move / Add extra INPUT Number at end of loop
• Remove (Count ← 0 and) Count ← Count + 1
Or
Any four from:
• Include an IF statement after INPUT Number / before updating the arrays
• IF Number <> 9999 THEN … or similar
• Move output statements to be executed when Number = 9999
• Change UNTIL Count >= 50 to UNTIL Number = 9999
• Remove (Count ← 0 and) Count ← Count + 1
4
© UCLES 2020
Page 6 of 9
0478/22
Question
3(a)
March 2020
www.dynamicpapers.com
Cambridge IGCSE – Mark Scheme
PUBLISHED
Answer
Marks
One mark for correct input (all sets)
One mark for correct calculations (all sets)
One mark for each correct output
5
Set 1: 88, 74, 60
Mark1
Mark2
Mark3
Total
Average
OUTPUT
88
74
60
222
74
Pass
Mark1
Mark2
Mark3
Total
Average
OUTPUT
20
33
67
120
40
Pass
Mark1
Mark2
Mark3
Total
Average
OUTPUT
79
91
70
240
80
Distinction
Set 2: 20, 33, 67
Set 3: 79, 91, 70
3(b)
© UCLES 2020
Any three from:
• Add extra decision box …
• … in an appropriate position between the average calculation and the output
• Check for average greater than or equal to 60 and less than 80
• Output Merit if average greater than or equal to 60 (and less than 80) …
• … otherwise continue
Page 7 of 9
3
0478/22
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
4
Answer
One mark for explaining why a validation check is needed when data is input
To check that data is sensible / reasonable / meets required criteria
March 2020
www.dynamicpapers.com
Marks
4
One mark for explaining why a verification check is needed when data is input
To check that data is not changed on entry
One mark for an example of a validation check
Range check // Length check // Type check
One mark for an example of a verification check
Double entry // Visual check
Question
5(a)
© UCLES 2020
Answer
One mark for data type and reason
SIZE
text, expressed as a single word
SHAPE text, short phrase required
WOOD text, expressed as a single word
PRICE currency, needs to be expressed as dollars / may be used in calculations
SOLD Boolean, only two choices
Page 8 of 9
Marks
5
0478/22
Question
5(b)(i)
March 2020
www.dynamicpapers.com
Cambridge IGCSE – Mark Scheme
PUBLISHED
Answer
Marks
One mark for
• correct field and table names must include SIZE, WOOD and PRICE, allow SHAPE or SOLD
• correct show for PRICE only
• correct criteria to select small and walnut
Field: SIZE
Table: BOX
WOOD
PRICE
BOX
BOX
3
Sort:
Show:
Criteria: =’small’
=’walnut’
or:
5(b)(ii)
2
Field: WOOD
Table: BOX
Sort:
Show:
Criteria: =’walnut’ OR ‘beech’
or:
One mark for each correct alteration max 2
© UCLES 2020
Page 9 of 9
(1)
(1)