Computer Science (2210) · May/June 2020 · Mark scheme 21
Cambridge Computer Science (2210) mark scheme for paper 21, May/June 2020 — 2210/21/M/J/20, file 2210_s20_ms_21.pdf.
Text of this paper
www.dynamicpapers.com
Cambridge O Level
COMPUTER SCIENCE
2210/21
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 10 printed pages.
© UCLES 2020
[Turn over
2210/21
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 10
2210/21
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 10
2210/21
Cambridge O Level – Mark Scheme
PUBLISHED
Question
1(a)(i)
Answer
Any meaningful array related to Task 1 – one mark (max two) e.g.
ItemCode
Description
May/June 2020
www.dynamicpapers.com
Marks
4
Correct purpose for each array related to Task 1 – one mark (max two) e.g.
…to store the item codes
…to store the descriptions of the items for sale
1(a)(ii)
Any meaningful variable related to Task 1 – one mark (max two) e.g.
PurchaseItem
TotalPrice
4
Correct purpose for each variable related to Task 1 - one mark (max two) e.g.
… to allow input of an item/code for purchase
… to store/calculate the total price of the transaction
1(b)
Any one correct statement e.g.
• The Code data is made up of letters/alphabetic characters/not numbers
• Real data must have numerical value/would not be used in calculations
One mark for:
• String
© UCLES 2020
Page 4 of 10
2
2210/21
Question
1(c)
Cambridge O Level – Mark Scheme
PUBLISHED
Answer
Any five from
• Input with message to allow choice of mobile device
• Attempt to validate input to check for valid item code
• Accurate validation of input to check for valid item code
• Determination of whether device is phone or tablet
• Restriction to only allow input for SIM card required if mobile device is a phone
• Input with message to find out if a SIM card is required
Example answer
OUTPUT "Which type of phone or tablet would you like? Input the Item Code"
DeviceFlag ← False
WHILE DeviceFlag = False
INPUT DeviceCode
Count ← 0
WHILE Count<10 DO
IF DeviceCode = ItemCode[Count]
THEN
IF Count < 6
THEN
DeviceType ← "Phone"
ELSE
DeviceType ← "Tablet"
ENDIF
DeviceFlag ← True
Count ← 10
ENDIF
Count ← Count + 1
ENDWHILE
IF DeviceFlag = False
THEN
© UCLES 2020
Page 5 of 10
May/June 2020
www.dynamicpapers.com
Marks
5
2210/21
Cambridge O Level – Mark Scheme
PUBLISHED
Question
May/June 2020
www.dynamicpapers.com
Answer
1(c)
OUTPUT "Your code doesn’t exist, please try again"
ENDIF
ENDWHILE
IF DeviceType ← "Phone"
THEN
OUTPUT "Would you like a SIM Card? (Answer Y or N)"
INPUT SimRequired
ENDIF
1(d)
Any five from
• Explanation of finding if more than one device is purchased
• Explanation of application of device discount
• Explanation of calculating the discount(s) and finding the new price
• Explanation of outputting new total
• Explanation of outputting amount saved
• Explanation of messages used
Question
Marks
5
Answer
2
Statement
Marks
True
()
A structure diagram is a piece of code that is available throughout the structure of a program.
A structure diagram shows the hierarchy of a system.
A structure diagram is another name for an array.
A structure diagram shows the relationship between different components of a system.
Two marks for four correct rows.
One mark for three correct rows.
© UCLES 2020
False
()
Page 6 of 10
2
2210/21
Cambridge O Level – Mark Scheme
PUBLISHED
Question
3(a)
May/June 2020
www.dynamicpapers.com
Answer
One mark for each correct validation check (max two)
• Range
• Length
• Type
• Check Digit
Marks
4
One mark for each correct related purpose (max two) e.g.
• To make sure the data entered falls within a specific set of values
• To make sure the data entered is no longer than specified
• To make sure the data entered follows rules related to whether it is numbers of letters
• To make sure an identification code entered is genuine or possible
3(b)
One mark for correct verification check (max one)
• Double (data) entry
• Visual check
1
3(c)
Any two correct statements (max two) e.g.
• Validation checks if the data entered is possible/it cannot check if data has been entered correctly.
• Verification checks if the data entered matches the data submitted for entry/ it does not check if data matches set
criteria.
2
Question
4(a)
© UCLES 2020
Answer
Any two correct statements (max two) e.g.
• The value of the variable Count begins as 0 …
• … and is incremented by 1 before it is tested by the loop condition
• Count will never be 0 at the end of the loop
Page 7 of 10
Marks
2
2210/21
Cambridge O Level – Mark Scheme
PUBLISHED
Question
4(b)
Answer
May/June 2020
www.dynamicpapers.com
Marks
4
Count ← 0
REPEAT
INPUT Number
IF Number >= 100
THEN
Values[Count] ← Number
ENDIF
Count ← Count + 1
UNTIL Count = 50
One mark – separate INPUT statement
One mark – IF statement attempted
One mark – IF statement completely correct
One mark – termination of loop updated
4(c)
© UCLES 2020
Any two correct statements (max two) e.g.
• Alter the IFstatement/add a second IF statement/comparison that’s already there …
• … so that additional criteria set an upper limit of <=200
Page 8 of 10
2
2210/21
Cambridge O Level – Mark Scheme
PUBLISHED
Question
Answer
5(a)
May/June 2020
www.dynamicpapers.com
Marks
Value
Calc1
Calc2
50
25
16
33
16
11
18
9
6
15
7
5
30
15
10
OUTPUT
4
18
30
-1
One mark for each correct column (max four)
5(b)
© UCLES 2020
Any two correct statements e.g.
• The program outputs a value
• That is divisible by 6 // 2 and 3
2
Page 9 of 10
2210/21
May/June 2020
www.dynamicpapers.com
Cambridge O Level – Mark Scheme
PUBLISHED
Question
Answer
6(a)
To uniquely identify a product (in TOOLS)
6(b)
HS50
GFLG
LMPT
Hose (50 metres)
Garden Fork
Lawn Mower (Petrol)
Marks
1
60
50
25
3
One mark for correct data
One mark for correct format
One mark for data in correct order
6(c)
Field: Code
Table: TOOLS
Description
Quantity_Stock
TOOLS
TOOLS
3
Sort: Ascending
Show:
<25
Criteria:
or:
One mark for each completely correct column (max three)
© UCLES 2020
Page 10 of 10