Computer Science · June 2023 · Mark scheme · Paper 2C
Edexcel International GCSE Computer Science mark scheme for Paper 2C, June 2023 — 4CP0/2C, file 4cp0-2c-rms-20230824.pdf.
Text of this paper
Mark Scheme (Results)
Summer 2023
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 2023
Question Paper Log Number P72938A
Publications Code 4CP0_02_2306_MS
All the material in this publication is copyright
© Pearson Education Ltd 2023
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.
Question mp
1(a)
A1
A2
A3
Answer
Award one mark for each correct cell:
Input
Debit / Credit / Description
Processing
Balance + Credit / Balance - Debit
Output
Balance
Additional Guidance
Input: accept examples of inputs
e.g. 10.23 (must be in Figure 1)
Processing; mark first 3 things
(ignore extra text) if correct e.g.
balance + credit – debit (1)
balance + credit + debit (1)
balance – credit (0)
accept examples from table e.g.
128.35 – 10.23 (1)
Output: accept description of
formula e.g. subtract debit from
balance (1)
Question mp
1(b)(i)
B1
1(b)(ii)
B2
1(b)(iii)
B3
1(b)(iv)
1(b)(v)
B4
B5
Answer
Award one mark for each of:
This is 5%
or
Accept || for C# and Java
grossAmt
netAmt
TAX
inGross
Mark
Additional Guidance
3
Mark
1
1
1
1
1
Question mp
1(c)(i)
C1
Answer
Award one mark for:
1(c)(ii)
To store a value that will not change (during program execution) (1)
Award one mark for any of the following:
C2
•
•
•
•
•
It is less likely to be changed by accident (translation will error if
attempt assignment)(1)
The value only needs to be changed in one place (for
maintenance) (1)
It is easier to read/understand the logic of (1)
Ensure consistency of value if it has a name rather than the hardcoded same value repeatedly (typo) (1)
Can make code more efficient (optimisation / value stored rather
than reference)
Additional Guidance
Mark
1
MP1 And MP4 are referring to
programmer. Do not accept
answers relating to user.
1
Question mp
2(a)(i)
A1
A2
Answer
Award one mark for any of the following up to a maximum of two
marks:
•
•
•
•
2(a)(ii)
A3
The code in the library has already been
debugged/tested/optimised / library code less likely to have
errors (1)
May include specialised/proprietary functions (1)
Library subprograms can be imported into code when needed /
don’t need to write code themselves (to save a programmer
time/work) (1)
making it more readable / makes code easier to understand
(Code files become shorter)
A4
Mark
Don’t allow quicker/easier/better
without a reason being given
Accept answers about
subprograms as candidate may
have written these themselves
Line numbers are for guidance –
mark answer as a whole
2
The only correct answer is A
B is not correct because iteration is not callable and does not return a
result.
C is not correct because a procedure, while callable, does not return a
result.
D is not correct because selection is not callable and does not return a
result.
2(a)(iii)
Additional Guidance
Allow characteristics of a specific
library (math, random), if it can
be attributed to unique bullets
1
Award one mark for:
•
A variable that exists/is accessible only in the subprogram/scope
in which it is created (1)
1
Question mp
2(b)(i)
B1
B2
B3
Answer
Award one mark for each correct row.
Adult
Children
1/2/3/4
1/2/3/4/5/6
Boundary
1/4
1/6
Erroneous
Any value <1 or >4
Any value <1 or >6
Normal
2(b)(ii)
Award one mark for each of:
Additional Guidance
Accept all valid values for normal
and boundary
Do not accept written numbers
(two) as question asks for ‘numeric
data’ – this is testing range, not
data types.
Mark
3
Runtime error (B7) could be fixed
before logic error (B6)
B4
Change =+= to +
Applies to all languages
B5
Change > to <=
Accept < for <=
B6
Change order of subtraction to: requiredWeight - inStock
B7
Change 0 to 1000
Allow /-1000 as alternative to B6
/1000 could happen after initial
location e.g. print(“Order”,
weightNeed/1000, “kilograms)
4
Question mp
3(a)
A1
A2
Answer
Award one mark for any of the following up to a maximum of two
marks:
•
•
•
Additional Guidance
Line numbers are for guidance –
mark answer as a whole
Mark
Each column represents a variable/output (1)
Rows shows how the values of variables change (as the code is
executed) (1)
Values are filled in manually/by hand (1)
2
Question mp
3(b)
B1
B2
B3
Answer
Award one mark for each correct cell:
Additional Guidance
ignore quotes e.g. “State 2”
num1
num2
Output
88
18
State 2
17
18
State 4
12
19
State 1
Mark
3
Question mp Answer
3(c)
Award one mark for each of:
C1
At least one variable with a suitable variable name
C2
At least one variable initialised to an appropriate value
C3
While loop used to continue running code
C4
Relational test to identify terminating condition for loop
C5
Selection used to check for negative exponent
C6
Appropriate error message if exponent is negative
C7
Calculation of answer using any method
C8
A loop used to calculate answer as indicated in flowchart
C9
Prompts and output messages are fit for purpose
C10
Executing and producing the correct output for anticipated inputs
Suggested test data and output
Base
Exponent Output
0
ends program
2
0
2 to power of 0 is 1
3
4
3 to power of 4 is 81
Additional guidance
Mark
C4 should exit loop
Allow C5 if a loop is used to keep
asking for a non-negative
exponent
C9 – ignore error message in C6;
must have base, exponent, and
answer in output for this mark
10
C#
Java
Python
Question mp
4(a)(i)
A1
A2
Answer
Award one mark for each correct cell:
Additional Guidance
Allow lower case ciphertext
Plaintext
Shift
Ciphertext
PIXEL
-4
LETAH
CLOUD
+3
FORXG
Mark
2
Question mp
4(a)(ii)
A3
A4
Answer
Award two marks for a comparison such as:
•
•
Both produce same result (IQNF)(1) because the shift of -6
followed by +8 is the same as the shift of +2 (1)
The result is the same (IQNF) (1), but the single shift is more
efficient than a double shift (1)
Additional Guidance
can have 1 mark from MP and 1
mark from Practical
e.g. GOLD (+2) = IQNF (1) which
Mark
would be same result (1)
Practical explanation:
GOLD (-6) = AIFX (+8) = IQNF (1)
GOLD (+2) = IQNF (1)
2
4(a)(iii)
A5
A6
Award two marks for a linked explanation such as:
The letter Y has been encrypted incorrectly as the letter V / the letter Y
should have been encrypted to the letter D (1), because the +5 shift did
not roll over the end of the alphabet correctly (1)
identify where error occurred (1)
and can explain how error
occurred (1)
2
Question mp Answer
4(b)
Award one mark for each of:
int
Word and 2 numbers input
B2
Selection/loop used to check word input
B3
Test for word length exactly 2
B4
Appropriate error message for invalid string input
B8 is only for print(), key may not
B5
Reverse the inputted word, any method
be correct
B6
Whole number part of the decimal number generated
B7
Correct key generated (concatenation)
B8
Key output
float
qwe/q
qw
Output
error message
12
17.89
12wq17
Mark
data types on input
B1
Suggested test data and output
word
Additional guidance
B1 does not require casting for
B6 do not accept taking just first
digit from a string
8
C#
Java
Python
Python
Question mp
5(a)
A1
A2
Answer
Award 1 mark for demonstration of one correctly merged/split row
Award 2 marks for correct merge sort
Blackfin, Bigeye
Longtail, Albacore
Longtail, Blackfin, Bigeye,
Albacore
Bluefin
Bluefin
Additional Guidance
We are testing pupils
understanding of how a merge
sort progresses:
• Divide and conquer (split)
• Merging adjacent
elements
Allow answers in ascending order
Mark
Longtail, Bluefin, Blackfin, Bigeye, Albacore
OR
Bigeye
Blackfin, Albacore
Longtail, Bluefin
Longtail, Bluefin, Blackfin,
Albacore
Bigeye
Longtail, Bluefin, Blackfin, Bigeye, Albacore
OR
Blackfin, Bigeye
Blackfin, Bigeye
Albacore
Longtail, Bluefin
Longtail, Bluefin, Albacore
2
Longtail, Bluefin, Blackfin, Bigeye, Albacore
OR
Blackfin, Bigeye
Blackfin, Bigeye, Albacore
Albacore
Longtail, Bluefin
Longtail, Bluefin
Longtail, Bluefin, Blackfin, Bigeye, Albacore
Question mp
5(b)
B1
B2
Answer
Award one mark for each correct cell:
Line number with error
Corrected line of
pseudocode
Additional Guidance
Ignore spellings
11 (1)
Ignore missing text as long as
the minimum of [ndx] is
provided
SET tmp TO myTuna[ndx] (1)
B2 does not depend on B1
Mark
2
Question mp Answer
5(c)
Award one mark for each of:
Additional guidance
C1 allow append as writing to file
Mark
C4 Do not award comma within
an array
C5 must have 1 complete line
written to file (allow additional
spaces and commas). Should
include individual elements (2D
index) and not a 1D array from
tbl_tuna
C6 complete file must be as
expected e.g. no additional
comma at end of line and no
spaces around commas
6
C#
Java
Python
Question mp Answer
6
Award one mark for each of:
A1
Any variable for tracking best breed
A2
A loop to all items in an array
A3
Daily volume calculation is volume * count
A4
Rows of arrays are displayed
A5
Total volume calculated correctly by any method
A6
Relational operators used to compare rating and daily volume
A7
Boolean operator/nested selection used to combine tests
A8
Add calculated daily volume to the new data structure
A9
Description of data fields displayed (no alignment required)
A10
Recommended breed identified correctly
A11
Outputted information is fit for purpose and suitable for the audience
Additional guidance
Mark
Initial values could be the first
breed in the table
The same index can be used
across all the individual arrays,
regardless of loop type
Disregard accuracy of indexing
Disregard presence/lack of
calculated daily volume
by any method except hardcoded
11
Award up to a maximum of nine marks using the levels-based mark scheme below.
No rewardable content
Band 0
Band 1 (1-3 marks)
Band 2 (4-6 marks)
Band 3 (7-9 marks)
Little attempt to decompose the
problem into component parts
Some attempt to decompose the problem
into component parts
The problem has been decomposed
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
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
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 mostly clear and readable
Code is clear and readable
Finished program will function with some
but not all other data sets or input
Finished program could be used with
other data sets or input
The program meets most of the given
requirements
The program fully meets the given
requirements
Mark
(9)
C#
Java
Python
Pearson Education Limited. Registered company number 872828
with its registered office at 80 Strand, London, WC2R 0RL, United Kingdom