Computer Science · June 2022 · Mark scheme · Paper 2C
Edexcel International GCSE Computer Science mark scheme for Paper 2C, June 2022 — 4CP0/2C, file 4cp0-2c-rms-20220825.pdf.
Text of this paper
Mark Scheme (Results)
Summer 2022
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
Summer 2022
Question Paper Log Number P72406A
Publications Code 4CP0_2C_2206_MS
All the material in this publication is copyright
© Pearson Education Ltd 2022
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
1 (a)
mp
A1
Answer
Additional Guidance
Mark
The only correct answer is D
A is not correct because the value can be used more than once
B is not correct because the value does not always have to be input
C is not correct because the value does not always have to be used in a calculation
Question
mp
Answer
1 (b)
B1
The only correct answer is B
(1)
Additional Guidance
Mark
A is not correct because this would not aid readability of the code
C is not correct because this would not aid readability of the code
(1)
D I not correct because this would not aid readability of the code
Question
1 (c)
Question
1 (d)
mp
C1
C2
mp
D1
Answer
Award 1 mark for each of:
Data type
Example value
char
real
An example of any single letter, number or symbol
An example of a number with a decimal point
Answer
Award up to 2 marks for a description such as:
•
Question
1 (e)
mp
E1
Additional Guidance
Accept quotes around the
character
Real number does not need a
number after the decimal point to
be awarded the mark
Additional Guidance
Boundary testing uses the most extreme valid data / minimum and maximum
valid values (1) whereas erroneous testing uses invalid data (1)
Answer
Logic/logical
Mark
(2)
Mark
(2)
Additional Guidance
Mark
(1)
Question
2 (a)(i)
2 (a)(ii)
2 (a) (iii)
2 (a)(iv)
2 (a)(v)
mp
A1
A2
A3
A4
A5
Question
4 (a)
mp
A1
Additional Guidance
Mark
(1)
(1)
(1)
(1)
(1)
Additional Guidance
Mark
3/8/20
7
21/23
check/count/pNumber
pNumber
Answer
The only correct answer is B
A is not correct because this is decryption
C is not correct because this is not an encryption
D is not correct because this is not an encryption
Question
4 (b)
mp
B1
B2
B3
Answer
Award 1 mark for each correct symbol
Word
M
A
(1)
Additional Guidance
Mark
Y
Symbol
(3)
Question
mp
Answer
4 (c)(i)
4 (c)(ii)
4 (c)(iii)
C1
C2
C3
5
TIHYSEMNEEERNA
Rail (Fence cipher)
Additional Guidance
Mar
k
(1)
(1)
(1)
Question
mp
Answer
Additional Guidance
5 (b)(i)
B1
Award one mark for each:
If the final row (1, 2, 3, 8, 9, 10) is
B2
B3
•
•
•
Pass 1 correct in first row of the response (1)
Pass 2 OR 3 correct in any row of the response (1)
All passes correct and no extra passes (1)
Mark
repeated treat as the same row.
2 3 8 1 9 10
2 3 1 8 9 10
2 1 3 8 9 10
1 2 3 8 9 10
5 (b)(ii)
B4
(3)
Award up to 2 marks for a linked explanation such as:
B5
•
The sorting is done in the same place as the original data (1), which means only
one additional variable is needed to store the value being swapped (when the
values are out of order (1)
•
All sort and swapping operations are done on the original data (1) which means
the amount of memory needed is constant (1)
•
(2)
The list does not need to be split (1), which would use more memory (1)
Question
mp
Answer
5 (c)
C1
Award up to 3 marks for a linked description that includes:
Additional Guidance
Mark
C2
C3
•
•
•
Start at the beginning of the list (1)
Compare each value in the list with the search item (1)
Repeat until a match is found / the end of the list is reached (1)
(3)
Code - Java
Question
1 (f)
mp Answer
Award 1 mark for each of:
F1 Bracket added and no other amendments made to the line (1)
F2 == becomes = (1)
F3 System.out.print " moved to after is and before +
Must still include the print statement
Code examples
Java
Additional Guidance
Mark
(3)
Question
1 (g)
mp Answer
Award 1 mark for each of:
G1 At least 1 condition correct (1)
G2 At least 1 > or < condition and message match (1)
G3 At least 1 output includes letter and stored letter with an appropriate message (1)
G4 All conditions and outputs correct (1)
Code examples
Java
Additional Guidance
Mark
(4)
Question
2 (b)
mp
Award 1 mark for each of:
Evidence should be found in the Function
B1
Function interface is correct (1)
B2
Condition correct (for the number 1) (1)
B3
Loop initialised correctly (from 2 to the input number) (1)
B4
If condition correct (modulus) (1)
B5
Check returned (1)
Evidence should be found in the Main program
B6
Input of number stored as an integer variable (1)
B7
Input includes a space/colon/ new line before the input value
B8
Function called correctly (1)
B9
Display includes number and message for either a prime number OR not (1)
Overall
B10 Compiling without syntax errors (1)
B11 Executing and producing the correct output (1)
Code examples
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
(11)
Java
Question
3
mp
Award 1 mark for each of:
A1
At least one variable with a meaningful name (1)
A2
At least one condition and price correct (ignore order) (1)
A3
All conditions and prices correct (1)
A4
Calculation for Total cost is correct (1)
A5
Price per textbook and total cost displayed (1)
A6
Calculation of cost and display of output are not included in the if statement (1)
Code examples
Additional Guidance
Mark
(6)
Java
Question
5 (a)
mp Answer
Award 1 mark for each of:
A1 Variable to store a number of incorrect passwords (1)
A2 Loop used (1)
A3 Each password checked to see if the first character is an uppercase letter (1)
A4 Each password checked to see if it contains a digit (1)
A5 Only check for digits if first character is uppercase OR
Only checks if first character is uppercase if at least one digit is present (1)
A6 Number of incorrect passwords incremented correctly (1) (allow follow through)
A7 All incorrect passwords displayed (1) (allow follow through)
A8 Text file closed (1)
A9 Number of incorrect passwords displayed (1) (allow follow through)
Code examples
Java
Additional Guidance
Mark
(9)
Question
6
mp
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
Answer
At least two appropriate subprograms used
Repeat guess until the word has been guessed OR no attempts left
Generate and display the number of attempts left
Request input of the word
Validate the input of the word to ensure it is the same length as the random word
Check to see if the guess matches the random word
If the word has been guessed, display message including the random word and number of
attempts
Keep track and display letters that are in the word
Keep track and display letters that are not in the word
Letters appear only once in each list
Display lose message including the random 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
Must see working correctly
Must see working
Must see working
Must see working
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
Java
Subprograms
Main program
Pearson Education Limited. Registered company number 872828
with its registered office at 80 Strand, London, WC2R 0RL, United Kingdom