Computer Science (2210) · May/June 2020 · Mark scheme 22
Cambridge Computer Science (2210) mark scheme for paper 22, May/June 2020 — 2210/22/M/J/20, file 2210_s20_ms_22.pdf.
Text of this paper
www.dynamicpapers.com
Cambridge O Level
COMPUTER SCIENCE
2210/22
Paper 2
May/June 2020
MARK SCHEME
Maximum Mark: 50
Published
Students did not sit exam papers in the June 2020 series due to the Covid-19 global pandemic.
This mark scheme is published to support teachers and students and should be read together with the
question paper. It shows the requirements of the exam. The answer column of the mark scheme shows the
proposed basis on which Examiners would award marks for this exam. Where appropriate, this column also
provides the most likely acceptable alternative responses expected from students. Examiners usually review
the mark scheme after they have seen student responses and update the mark scheme if appropriate. In the
June series, Examiners were unable to consider the acceptability of alternative responses, as there were no
student responses to consider.
Mark schemes should usually be read together with the Principal Examiner Report for Teachers. However,
because students did not sit exam papers, there is no Principal Examiner Report for Teachers for the June
2020 series.
Cambridge International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes for the June 2020 series for most Cambridge
IGCSE™ and Cambridge International A & AS Level components, and some Cambridge O Level
components.
This document consists of 8 printed pages.
© UCLES 2020
[Turn over
2210/22
Cambridge O Level – Mark Scheme
PUBLISHED
Generic Marking Principles
May/June 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 8
2210/22
Cambridge O Level – Mark Scheme
PUBLISHED
May/June 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 8
2210/22
Cambridge O Level – Mark Scheme
PUBLISHED
Section A
Question
1(a)
Answer
For two variables
One mark for identification of a variable with a suitable data type and one mark for its use
Variable
Data type
Use
hourArrived
integer
to calculate the price based on the number of hours parking
Variable
Data type
Use
priceToPay
real
store result of price calculation
May/June 2020
www.dynamicpapers.com
Marks
4
Many correct answers, these are examples only.
1(b)
For each validation check
One mark for identification of a check and one mark for the justification
Day
Check
Justification
presence check
need to enter day to be able to calculate price
Hour
Check
Justification
range check
need to check hour is between 8 and 23
Many correct answers, these are examples only.
© UCLES 2020
Page 4 of 8
4
2210/22
Cambridge O Level – Mark Scheme
PUBLISHED
Question
Answer
May/June 2020
www.dynamicpapers.com
Marks
1(c)
Any four from:
• All 5 digits input
• Each of the first 4 digits is multiplied by a weight based on its position
• Specific method of individualising the digits described
• Added together divided by 11
• Remainder used to calculate correct 5th digit
• Checked against 5th digit input
• If the same, then valid
4
1(d)
Any four from:
• Input amount
• Check amount greater than or equal to the price to pay …
• … True – add amount to daily total
• … False – ask for payment to be re-entered
• … Until valid amount input
Sample answer
PRINT "Please Enter Payment"
INPUT amount
WHILE amount < priceToPay DO
PRINT "Insufficient payment, please enter new Payment"
INPUT amount
ENDWHILE
totalPayment ← totalPayment + amount
4
1(e)
Explanation
Any four from:
• Add number of hours selected to arrival hour
• Check if this is greater than 16
• True – calculate price up to 16 …
• … using current price in force
• … and add in evening charge
• False – calculate price as usual
4
Programming statements can be used but must be explained.
© UCLES 2020
Page 5 of 8
2210/22
Cambridge O Level – Mark Scheme
PUBLISHED
Section B
Question
2
Question
Answer
May/June 2020
www.dynamicpapers.com
Marks
5
Real
Integer
Char/String
String
Boolean
Answer
Marks
3(a)
One mark for error and correction
Line 1 HighestMark ← 0
Line 7 INPUT Mark[Count]
Line 10 HighestMarkStudents ← HighestMarkStudents + 1
Line 14 HighestMark ← Mark[Count]
4
3(b)
Any six from:
Add variable LowestMark …
… Set this to a high value for example 100
Add variable LowestMarkStudents …
… Set this to zero
Check if Mark[Count] = LowestMark …
… True – add 1 to LowestMarkStudents
Check if Mark[Count] < LowestMark …
… True – set LowestMarkStudenta to 1 and set LowestMark to Mark[Count]
Add extra output statement
6
© UCLES 2020
Page 6 of 8
2210/22
Question
4(a)
4(b)
© UCLES 2020
May/June 2020
www.dynamicpapers.com
Cambridge O Level – Mark Scheme
PUBLISHED
Answer
Marks
3
One mark for correct input (PointsWon and PointsLost)
One mark for correct calculations (Difference)
One mark for correct output
OUTPUT
PointsWon
PointsLost
Difference
5000
4474
526
6055
2000
4055
Well done move up
7900
9800
-1900
Sorry move down
3000
2150
850
-1
6700
Any three from:
• Add extra decision box …
• … before checking for difference greater than or equal to 1000
// change Is difference >= 1000 to >= 1000 and <= 5000
• Check for difference greater than 5000
• Add extra Output ‘Fantastic leap up two levels’…
• … before flowline returns to input
Page 7 of 8
Keep on trying
Keep on trying
3
2210/22
Question
5
May/June 2020
www.dynamicpapers.com
Cambridge O Level – Mark Scheme
PUBLISHED
Answer
Marks
3
One mark for explanation of dimension
One mark for explanation of index
One mark for inclusion of an example
The dimension is the number of indexes required to access an element.
The index is the position of the element in an array
For example A[25] is the 25th element of a one-dimensional array.
Question
6(a)
6(b)
Answer
Marks
2
One mark for field and one mark for reason
Field
Juice code
Reason only unique identifier
Field: Fruit 1
Fruit 2
Size
Stock level
Table: JUICE
JUICE
JUICE
JUICE
Sort:
Show:
Criteria: ="Apple"
="Apple"
or:
One mark for each correct column
© UCLES 2020
Page 8 of 8
4