Computer Science · January 2022 · Mark scheme · Paper 2C
Edexcel International GCSE Computer Science mark scheme for Paper 2C, January 2022 — 4CP0/2C, file 4cp0-2c-rms-20220224.pdf.
Text of this paper
Mark Scheme (Results)
November 2021
Pearson Edexcel International GCSE
In Computer Science (4CP0/2C)
Paper 02: Application of Computational Thinking
Edexcel and BTEC Qualifications
Edexcel and BTEC qualifications are awarded by Pearson, the UK’s largest awarding body. We provide a wide range of qualifications including
academic, vocational, occupational and specific programmes for employers. For further information visit our qualifications websites at
www.edexcel.com or www.btec.co.uk. Alternatively, you can get in touch with us using the details on our contact us page at
www.edexcel.com/contactus.
Pearson: helping people progress, everywhere
Pearson aspires to be the world’s leading learning company. Our aim is to help everyone progress in their lives through education. We believe
in every kind of learning, for all kinds of people, wherever they are in the world. We’ve been involved in education for over 150 years, and by
working across 70 countries, in 100 languages, we have built an international reputation for our commitment to high standards and raising
achievement through innovation in education. Find out more about how we can help you and your students at: www.pearson.com/uk
November 2021
Question Paper Log Number P69298A
Publications Code 4CP0_2C_2111_MS
All the material in this publication is copyright
© Pearson Education Ltd 2021
General Marking Guidance
•
All candidates must receive the same treatment. Examiners must mark the first candidate in exactly the same way as they mark
the last.
•
Mark schemes should be applied positively. Candidates must be rewarded for what they have shown they can do rather than
penalised for omissions.
•
Examiners should mark according to the mark scheme not according to their perception of where the grade boundaries may lie.
•
There is no ceiling on achievement. All marks on the mark scheme should be used appropriately.
•
All the marks on the mark scheme are designed to be awarded. Examiners should always award full marks if deserved, i.e. if the
answer matches the mark scheme. Examiners should also be prepared to award zero marks if the candidate’s response is not
worthy of credit according to the mark scheme.
•
Where some judgement is required, mark schemes will provide the principles by which marks will be awarded and
exemplification may be limited.
•
When examiners are in doubt regarding the application of the mark scheme to a candidate’s response, the team leader must be
consulted.
•
Crossed out work should be marked UNLESS the candidate has replaced it with an alternative response.
Theory
Question mp Answer
1 (a)
A1 Award 1 mark for any of:
•
•
•
•
Additional Guidance
Comments (1)
Indentation (1)
Meaningful variable/constant/subprogram names (1)
White space (1)
Question mp Answer
1 (b)
B1 Award 1 mark for each column:
B2
B3
Error description
Syntax
Mark
Runtime
Divide by 0
Use x instead of * multiply
Subtract 10 from 2 instead of 2 from 10
(1)
Additional Guidance
Logic
Mark
(3)
Question mp Answer
1 (c)
C1 The only correct answer is D
Additional Guidance
Mark
A is not correct because as it is a data structure
B is not correct because as there is no arrow looping back to the condition
C is not correct because as the flowchart does not include an operator
(1)
Question mp Answer
B1
2 (b)
Award up to 4 marks for a linked explanation such as:
B2
B3
B4
Question
2 (c)
mp
C1
C2
C3
C4
C5
The list is not sorted (1) Juan should come after Elija if the list was sorted /
Elija is compared with Juan (1), so the bottom half of the list would be
discarded (1) after the first pass through the loop (1)
• Binary search works on a sorted list (1) because it uses divide and
conquer (1) half the list discarded each pass through (1) based on
comparison of search item with middle item (1)
Answer
Award 1 mark for each of:
Split into two sets of four (1)
Split each set into two pairs (1)
Split each pair into single elements (1)
Merge elements into sorted pairs (1)
Merge pairs into sorted sets (1)
Additional Guidance
Mark
•
Additional Guidance
Allow step at C3 to be implied
(4)
Mark
9 1 7 6 3 5 2 8
9, 1, 7, 6 3, 5, 2, 8
9, 1 7, 6 3, 5 2, 8
9 1 7 6 3 5 2 8
1, 9
6, 7
3, 5
2, 8
1 6, 7, 9 2, 3, 5, 8
1 2 3 5 6 7 8 9
(5)
Question mp Answer
A1
3 (a) (i)
C# and Python monthNumber/monthsAndDays/count/found (1)
Java monthNumber/monthsAndDays/count/found/input
3 (a) (ii)
3 (a) (iii)
A2
3 (a) (iv)
3 (a) (v)
3 (a) (vi)
A4
A3
A5
A6
A7
Additional Guidance
(1)
(1)
monthsAndDays (1)
C#
• WriteLine, ToString, ToInt32, ReadLine
Java
• Print, ParseInt, nextLine, ToString, Equals
Python
• print/len/int/input (1)
(1)
(1)
(1)
Display/showMonthNameAndDays (1)
pMonth (1)
Award 1 mark for each of:
Type of test data
Boundary (1)
Erroneous (1)
Mark
Test data
1
15
Question mp Answer
B1
3 (b)
Award up to 2 marks for a linked explanation such as:
(2)
Additional Guidance
Mark
B2
•
•
•
A library program would not know the names of the calling program’s
variables in advance (1) meaning it would not be a reusable solution (1)
(Using parameters) enables reusable solutions (1) using different data
values/arguments (1)
Using parameters uses less memory / uses memory more efficiently (1)
because it avoids the use of global variables / because the memory is
freed after the subprogram is finished (1)
(2)
Question mp Answer
B1
4 (b)
Award up to 2 marks for a linked description such as:
Additional Guidance
Mark
B2
•
To check to see if a word is the same when it is reversed / is a palindrome
(1) and output an appropriate message / repaper is the same when
reversed (1)
(2)
Coding
Question mp Answer
1 (d)
Award 1 mark for each of:
D1
= changed to == (1)
D2
Condition changed to less than / final two print statements swapped (1)
D3
else changed to else (1)
Code examples
C#
Java
Python
Additional Guidance
Mark
(3)
Question mp Answer
1 (e)
Award 3 marks for:
E1
Prompt for a number to be input (1)
E2
Input stored in an integer variable (1)
E3
Loop used (1)
E4
Loop iterates only for the values 1 – 12 (1)
E5
Display is correct when program executes (1)
Code examples
C#
Java
Additional Guidance
Mark
(5)
Python
Question
2 (a)
mp
Award one mark for each of:
A1
Input as an integer (1)
A2
A3
A4
A5
A6
A7
A8
A9
A10
Code examples
Loop with correct conditions
start <= end and not found (1)
Use of correct symbol for integer division (in conversion of DIV) or type coercion
(1)
Check to see if number in middle matches item (1)
Set found to true (1)
Check to see if item is less than number in middle (1)
Set end to middle – 1 (1)
else – set start to middle + 1 (1)
count incremented by 1 (1)
Program execution is fully correct (1)
Additional Guidance
Logic of algorithm must be
followed as set out.
Alternatives must address
each point.
Do not penalise candidates
who attempt more than the
stated requirements.
Do not penalise spelling
mistakes in the input message.
Mark
(10)
C#
Java
Python
Question mp Answer
Additional Guidance
3 (c)
Award 1 mark for each of:
C1
Condition to check whether the year exactly divides by 4 or equivalent condition
(1)
C2
Condition to check whether year exactly divides by 400 or equivalent condition (1)
C3
Condition to check whether year does not exactly divide by 100 or equivalent
condition (1)
C4
Correct message for at least one of the conditions (1)
C5
Program executes and produces the correct output (1)
C6
Efficient solution (1)
Mark
(6)
Code examples
C#
Java
Python
Question mp Answer
4 (a)
Award one mark for each of:
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
Code examples
Additional Guidance
Mark
Validation
Suitable input prompt and storing it in binaryPattern (1)
Length of binary pattern validated as 8 (1)
Loop used to check the length of binary pattern (1)
Binary to denary
Loop through each digit in the binary pattern (1)
Correct conversion of at least one binary digit to relevant placeholder (1)
Attempt at running total using denaryNumber (1)
Correct running total using denaryNumber (1)
Print statement includes the binary pattern and the denary number (1)
Print statement outside of conversion loop (1)
Comment explains how conversion works (1)
Program executes correctly for any binary pattern that is exactly 8 characters
long only (1)
(11)
C#
Java
Python
For Q5, the first 11 marks are for coding that matches requirements of task. The remaining 9 marks should be allocated on a best fit
Question mp
5
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
Answer
At least three variables initialised appropriately
Word input
Program repeats until 1 is input
Loop through each word in the array
Words that begin with the same letter
Check to see if the first letter of the input word matches the first letter of at least
one word in the array
The number of words that begin with the same letter displayed
Words that contain the input word
Check to see if the word contains the input word
Number of letters in the word calculated
At least one word from the array that contains the input word displayed
The number of words that contain the input word displayed
Identification of the longest word or the shortest word
Band 1 (1-3 marks)
Little attempt to decompose into
component parts
Some parts of the logic are clear and
appropriate to the problem
Some appropriate use and manipulation
of data types, variables, data structures
and program constructs
Parts of the code are clear and readable
Finished program will not be flexible
enough with other data sets or input
The program meets some of the given
requirements
Band 2 (4-6 marks)
Some attempt to decompose into
component parts
Most parts of the logic are clear and
mostly appropriate to the problem
The use and manipulation of data types,
variables and data structures and
program constructs is mostly appropriate
Code is mostly clear and readable
Finished program will function with some
but not all other data sets or input
The program meets most of the given
requirements
Additional Guidance
Band 3 (7-9 marks)
The problem has been decomposed into
component parts
The logic is clear and appropriate to the
problem
The use and manipulation of data types,
variables and data structures and
program constructs is appropriate
Code is clear and readable
Finished program could be used with
other data sets or input
The program fully meets the given
requirements
Mark
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
Mark
(9)
Code examples
C#
Java
Python
Pearson Education Limited. Registered company number 872828
with its registered office at 80 Strand, London, WC2R 0RL, United Kingdom