Computer Science · January 2021 · Mark scheme · Paper 2B

Edexcel International GCSE Computer Science mark scheme for Paper 2B, January 2021 — 4CP0/2B, file 4CP0_2B_msc_20210211.pdf.

Advertisement
Loading the paper…
Text of this paper

Mark Scheme (Results)

November 2020
Pearson Edexcel International GCSE
In Computer Science (4CP0/2B)
Paper 2: Application of Computational
Thinking

1 of 18

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

Autumn 2020
Publications Code 4CP0_2B_2011_MS
All the material in this publication is copyright
© Pearson Education Ltd 2020

2 of 18

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.

3 of 18

Mark Scheme - Theory
Question mp Answer
A1
1 (a)
C (equals) (1)

Additional Guidance

Mark
(1)

Question mp Answer
B1
1 (b)
Award one mark for any of:

Additional Guidance
Ignore capitalisation

Mark

•
•
•
•

TRUE and FALSE (1)
Yes and No (1)
T and F (1)
0 and 1 (1)

Question mp Answer
D1
1 (d)
Award one mark for any of:
•

•
•

4 of 18

E4

Additional Guidance

(Symbolic name associated
with) a value that may be
changed (1)
A container used to store
data (1)
A data store whose contents
can change whilst a program
is executing (1)

Question mp Answer
E1
1 (e) (i)
Python 6
C# 12
Java 8
E2
1 (e) (ii)
Python 3
C# 7
Java 3
E3
1 (e) (iii)
Award one mark for any of:

1 (e) (iv)

(1)

• amount (1)
• x (1)
• total (1)
• count (1)
message

Mark

(1)
Additional Guidance

Mark

(1)

(1)
Accept listNumbers or
numArray

(1)
(1)

Question mp Answer
3 (a)

A1

Award one mark for any of:
•
•
•

Conversion of plain text into
cipher (1)
Converting information/data
into a code (1)
Converting information/data
into an unreadable format (1)

Question mp Answer
3 (b)

B1

Award one mark for any of:
•

To ensure that the data can
only be read by an authorised
person / can't be read by an
unauthorised person. (1)

Question mp Answer
3 (c) (i)

C1
C2
C3
C4

Additional
Guidance
Accept alternative
wording

Mark

(1)
Additional
Guidance
Accept alternative
similar wording.
Do not accept
hacking.

Mark

(1)
Additional
Guidance

Mark

Award 4 marks for a correct response:
•
•

CAL|OTTA|MUIN|PO
PO|MUIN|OTTA|CAL

Award 1 mark each up to a maximum
of 3 for:
•
•
•

4 lines of text (1)
Zigzag arrangement of letters
(1)
Letters from each line
reproduced / consistent use of
the key 4: GSQTYXEXMSREP/
YKILQPWPEKJWH (1)

Question mp Answer
3 (c) (ii)

C5
C6

Additional
Guidance

Mark

Award 2 marks for a linked
explanation such as:
•

5 of 18

(4)

Limited number of usable keys
(1) to allow for sufficient
movement of characters / so
can easily be decoded by trial

(2)

and error / easy to use brute
force to crack (1)

6 of 18

mp ref
Question
5 (a)

A1
A2
A3
A4

2.1.4

Answer

5 (b) (i)

B1
B2

Fff123456o
FFF101111o
FFF111111ee
FFF112233o

Answer

1.1.9

Award 1 mark each for any of:

1.1.9

Simple implementation (1)
Can be used for sorted or
unsorted lists (1)
• If the target is at the beginning
of the data structure the search
will be faster than a binary
search
Award 1 mark each for any of:
•
•

5 (b) (ii)

B3
B4

•

•

7 of 18

Mark

Award 1 mark for each appropriate
validation test (up to 2) and 1 mark for
suitable example of erroneous data
that matches the test e.g.
First 3 characters are
upper case letters
Characters 4 to 9 are
non-zero numbers
Consists of only 10
characters
Final character
correct for sum of
numbers

Question mp ref

Additional
Guidance

May need to compare with all
items in list before search
complete (1)
May need longer time for
searching a large list (1)

(4)
Additional
Guidance
Accept
disadvantages of a
binary compared
with a linear
search.

Mark

(2)
Accept advantages
of a binary
compared with a
linear search.

(2)

Question mp ref
5 (c) (i)

C1
C2

2.6.2

Answer

Additional
Guidance

Mark

Award 1 mark each up to a maximum
of 2 for:
Both can use arguments /
parameter passing (1)
• Both can use local variables (1)
• Both can be called from
anywhere within the program
(1)
• Code can be reused without
being rewritten (1)
• Both can be library files (1)
• The code can be independently
tested for both (1)
Award two marks for a linked
explanation such as:
•

5 (c) (ii)

C3
C4

2.6.2

•

•

•

•

8 of 18

A function must always return
a result (1) whereas a
procedure does not (1)
A function interface must have
a data type (1) to signify the
type of data that will be
returned / a procedure does
not need this (1)
The result of a function must
always be used (either
assigned to a variable or as
part of a condition) (1) whereas
a procedure does not explicitly
return a result to be used (1)
A function produces
information (1) whereas a
procedure performs a task (1)

(2)

(2)

Mark Scheme – C# Coding
Question mp ref
C1
2.1.5
1 (c)
C2

2.1.5

C3

2.1.5

Code example
C#

9 of 18

Answer
Delete space in variable name (1)
Capitalise O in variable name (1)
Correction to print statement (1)

Additional Guidance

Mark

(3)

Question Mp
A1
2 (a)

10 of 18

ref
2.3.4

A2

2.2.2

A3

2.4.1

A4

2.2.2

A5

2.2.2

A6

2.2.2

A7

2.5.1

A8

2.4.1

A9

2.4.1

A10

1.1.6

Answer
Set variable base to 50 or heightChk to true
Create WHILE DO loop
Request input of height
if statement checks if height >= 1 or <= 100
if statement checks if height is >= 1 and <=100
heightCheck set to false if condition is met
Set area using given formula (0.5 x base x height)
Display one of base, height and area with appropriate label
or displays two of base, height and area without labels
Display all of base, height and area with appropriate labels
Executing and producing correct output

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.
Don’t penalise spelling mistakes and
alternative wording of the output.

Mark

(10)

Code example
C#

11 of 18

Question mp ref
B1
2.2.1
2 (b)
B2

2.4.1

B3

2.4.1

B4

2.5.1

B5

2.5.1

B6

2.4.1

B7

2.1.1

Code example
C#

12 of 18

Answer
Meaningful variable names used (1)
Meaningful prompts for input (1)
Input of length and width as whole numbers (1)
Perimeter calculated (= 2 x length + 2 x width) (1)
Gap deducted from perimeter (1)
Meaningful output (1)
Code is fit for purpose. Must have mark points 1-6 and be
easy to read (1)

Additional Guidance
The code example shown are is one way of
responding to the task. Other methods
should be credited accordingly.

Mark

(7)

Question mp ref
A1
2.5.2
4 (a)
A2

2.5.3

A3

2.5.2

A4

2.5.3

A5

2.5.2

A6

2.5.3

Code example
C#

13 of 18

Answer
english < 40, maths < 50 (1)
Use of and operator in IF (1)
english < 40, maths < 50 (1)
Use of or operator in ‘else if 1’ (1)
english >= 80 AND maths >=85 (1)
Correct completion of final else with messageIndex = 3 (1)

Additional Guidance

Mark

(6)

Question mp ref
B1
2.2.2
4 (b)
B2

2.1.6

B3

2.3.1

B4

2.2.2

B5

2.6.2

B6

2.6.3

B7

2.6.3

Code example
C#

14 of 18

Answer
Loop checks each pupil for low attendance
Display of name of low attendances
Counter for high attenders initialised
Loop uses correct comparison (>=)
Number of high attenders displayed correctly
Subprogram for option 1 called correctly
Subprogram for option 2 called correctly

Additional Guidance

Mark

(7)

15 of 18

For Q6, 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 ref
A1
2.2.1
6

16 of 18

A2

2.5.1

A3

2.1.6

A4

2.2.2

A5

2.2.1

A6

2.2.2

A7

2.1.6

A8

2.1.6

A9

2.1.6

A10

2.1.6

A11

2.1.6

Answer
Additional Guidance
Initialise variable for total sales by member
of staff (1)
Add succeeding months’ sales to total sales
(1)
Display total sales by member of staff (1)
Loop repeats for each member of staff (1)
Running team total sales initialised (1)
Add succeeding individual staff sales to
team total (1)
Display final running total (1)
Staff member with highest individual sales
identified (1)
Staff member with second highest
individual sales identified (1)
Information about staff with highest sales
displayed (1)
Information about staff with second
highest sales displayed (1)

Mark

(11)

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

Most parts of the logic are clear and
mostly appropriate to the problem

The logic is clear and appropriate to the
problem

Some appropriate use and manipulation
of data types, variables, data structures
and program constructs

The use and manipulation of data types,
variables and data structures and
program constructs is mostly appropriate

The use and manipulation of data types,
variables and data structures and
program constructs is appropriate

Parts of the code are clear and readable

Code is mostly clear and readable

Code is clear and readable

Finished program will not be flexible
enough with other data sets or input

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 some of the given
requirements

The program meets most of the given
requirements

The program fully meets the given
requirements

17 of 18

Mark

(9)

Code example
C#

18 of 18

Advertisement