You are on page 1of 17

Paper 2 Mark scheme

Question Answer Additional Guidance Mark


Number
1(a) Any two from: • Accept meaningful
variable names tied to
• Date/time of last service (1). the scenario, e.g.
• Total running time since last service (1) CarNumber
• Details of last service (1)
• Overall total of running time since car bought (lifetime) (1)
• Car number (1) (2)

Question Answer Additional Guidance Mark


Number
1(b) An expression that includes: • Units not required

• Calculation showing age in years (1)


• 30 min + (10 min * ageInYears) (1)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Example:

30 + (10 * (todayYear – purchaseYear))


(todayYear – purchaseYear) * 10 + 30
30 min + (10 min * (todayYear – purchaseYear)) (2)

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
79
80
Question Answer Additional Guidance Mark
Number
2(a) One mark for each point: • Award as long as
meaning is discernible
Input Process Output

Calculate overall total


(up to) 5 lap times
time for any car in Sum of lap times
(1)
the race
10 car numbers and Car number with
Find the winner (1)
10 total times quickest total time

10 car numbers with Find car with quickest Car number with
5 lap times each lap time quickest lap time (1)

(3)

Question Answer Additional Guidance Mark


Number
2(b) One mark for a correct statement:

• Returns the integer part of a division (1)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Guidance Mark
Number
3(a) One mark for each correct answer in the last column: • In this order only in
last column

Input Output displayed

numAdults numChildren

small-group discount (1)


8 0

family discount (1)


2 2

large-group discount (1)


12 0

(3)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
81
82
Question Answer Additional Guidance Mark
Number
3(b) One mark for each correct row:

Input

Requirements numAdults numChildren

A condition generating
1/2/3/4 0
‘regular pricing’

Smallest group qualifying


2 1
for ‘family discount’

(2)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Guidance Mark
Number
4(a) Any two from:

• Indentation (1)
• White space (1)
• Descriptive identifiers (1)
• Comments (1) (2)

Question Answer Additional Guidance Mark


Number
4(b)(i) One mark for each correct answer: • In this order only in
last column of table
• Award only blocking
Programming construct Line number(s) lines indicated
(14, 16) and (13, 18)
A comment 2 (1)
• Ignore examples
An integer variable initialisation 9/10/11 (1)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Selection 14-16 (1)

Iteration 13-18 (1)


(4)

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
83
84
Question Answer Additional Guidance Mark
Number
4(b)(ii) One mark for each accurately shown sequence (initialisation) or complete • Different formats of
pass through loop. tracing should be
awarded if
Example: synchronised change in
variables is discernible
• Quote marks not
required
Length Count Index Extended [index] Marks

3 0 0 (1)

‘Y’ (1)

‘N’ (1)

‘Y’ (1)

(4)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Guidance Mark
Number
5(a) An explanation that makes reference to the following point:
• This is a syntax error (1)
Plus one from:
• Because there is an error in using the grammar/rules of the programming
language (1)
• Because the word SET has been spelled incorrectly as TES/TES is not a
recognised command word (1) (2)

Question Answer Additional Guidance Mark


Number
5(b) An error and a correction for each line: • Do not penalise syntax
Line 10 errors as long as
• Error: The variable maximum doesn’t get reset to the maximum number of discernible
visitors/the variable maximum is initialised too high (1) • ‘-n’ is any negative
• Correction: SET maximum TO 0/SET maximum TO –n (1) integer
Line 13:
• Error: The for loop goes around too many times/the code goes past the end

Issue 2.0 – December 2015 © Pearson Education Limited 2015


of the visitor array/off-by-one error on array length (1)
• Correction: FOR index FROM 0 TO (length-1) DO (1) (4)

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
85
86
Question Answer Additional Guidance Mark
Number
5(c) One mark for each correct row:

Item Data type

char/character (1)
Gender of individual staff member

Whether an individual car is still under the Boolean (1)


manufacturer’s warranty

Mean number of hours needed to recharge


Real (1)
the battery in each car

Integer (1)
The number on the individual car

(4)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Guidance Mark
Number
5(d) A diagram showing a data structure that includes: • Data must be
• 2 or more rows (1) homogenous (all the
• 8 columns (1) same type)
• Homogenous realistic integer data, between 0 and 12 inclusive (1) • At least two rows of data
must be included,
Example (3 marks): otherwise it’s a 1-D array
• Column/row headings, if
ID Mon Tue Wed Thurs Fri Sat Sun included, must be clearly
3865 10 8 5 5 8 0 0 distinguishable from the
4722 0 0 8 8 8 6 6 data
• Columns can be in any
Example (3 marks): order
• Ignore subscripts if
[0] [1] [2] [3] [4] [5] [6] [7] provided and clearly not
3865 10 8 5 5 8 0 0 part of the data
4722 0 0 8 8 8 6 6 • If subscripts appear to
be part of the data and

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Example (2 marks): they include
characters, then the
Mon Tue Wed Thurs Fri Sat Sun third mark cannot be
10 8 5 5 8 0 0 awarded
0 0 8 8 8 6 6

Example (2 marks):

ID Mon Tue Wed Thurs Fri Sat Sun


3865 10 8 5 5 8 0 0
4722 0 0 8 8 8 6 6

Example (2 marks):

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
[0] [1] [2] [3] [4] [5] [6] [7]
3865 10 8 5 5 8 0 0
4722 0 0 8 8 8 6 6
(3)

87
88
Question Answer Additional Guidance Mark
Number
6(a) One mark for the correct name: • Not RETURN alone,
• Return value/return result/result (1) which is in the question (1)

Question Answer Additional Guidance Mark


Number
6(b) An explanation that makes reference to the following points:
• The variable, totalTime, on line 16 is a local variable, which exists only inside
the function (1)
• so updating it will not change the value of totalTime on line 2, which is a
global variable (1) (2)

Question Answer Additional Guidance Mark


Number
6(c) An explanation that makes reference to the following points:
• Executing the pseudo-code on line 17 will have no effect on TOTALTIME (1)
• because the variable TOTALTIME has been defined on line 5 as a constant,
which means its value cannot be changed during execution (1) (2)

Question Answer Additional Guidance Mark


Number
6(d) • One mark for each correct validation test (1) • Do not penalise syntax
• One mark for each appropriate corresponding test data (1) • Accept appropriate
alternative values for the
The mark for test data identified must be linked with the associated data validation test data
test.

Example:

Validation test Test data


timeOn > 0 timeOn = 0
timeOff >= 0 timeOff = -3
(4)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Guidance Mark
Number
7 An amended procedure showing: • Do not penalise syntax,
• Parameter inserted (1) if discernible
• Less than (<) test using the new parameter (1)
• Descriptive variable name for the parameter relative to context (1)

Example:

(3)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
89
90
Question Answer Additional Guidance Mark
Number
8 An assessment that includes: • Do not award ‘more
• Using a 1-dimensional array is the most appropriate choice (1) complex to code’ alone
and four from: • Do award ‘more
• 20 variables requires 20 distinct names (1) complex to code
• An array requires only one name (1) because you have to
• 20 variables may require complex selection statements (1) keep track of more
• An array may require only one loop (1) variable names’
• 20 variables are always needed even if fewer cars are in the race (1)
• An array can be allocated to the exact number of cars (1) (5)

Question Answer Additional Guidance Mark


Number
9(a) An explanation that makes reference to the following points: • Do not award generalities
• Sorting the file by postcode would make the searching more efficient
(1)
• because not every record has to be looked at to find the targeted
postcodes (1)
• since you can stop looking when you go past where your targeted postcode
should be (1) (3)

Question Answer Additional Guidance Mark


Number
9(b)(i) Identified issues that include:
• it is unethical to ask for the ethnic origin of a person who will be driving a car (1)
• Collected information can be directly tied to an identifiable individual
(1) (2)

Question Answer Additional Guidance Mark


Number
9(b)(ii) Any one from: • Accept violates the Data
• Redistribution of the data without permission may be illegal (1) Protection Act (DPA) 2003
• Use of data for purposes other than which it is collected for may be illegal (1)
• Organisations may have to ask permission before sharing personal data with a
third party (1) (1)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Guidance Mark
Number
10(a) A completed flow chart that includes: • Symbol and contents are
• Correct ellipse symbol for flow chart start (1) awarded independently
• Correct word ‘Start’ or ‘Begin’ in symbol (1)
• Correct diamond symbol for decision (1)
• Correct test ‘newPos < oldPos’ in symbol (1)
• Correct label ‘yes’ on bottom arrow (1)
• Correct label ‘no’ on right arrow (1) (6)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
91
Mark
Additional Guidance
Answer

(continued)
Question
Number
10(a)

92 Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Issue 2.0 – December 2015 © Pearson Education Limited 2015
Question Answer Additional Guidance Mark
Number
10(b) A flowchart that includes the following aspects: • Disregard use of ‘stop’
instead of loop as shown in
example
Aspect of Marks • Do not penalise use of plain
Solution 0 1 2 3 rectangle instead of
Functionality No There are There are input/output flow chart
awardable significant errors There are minor no errors in symbol, if discernible
content in logic, leading errors in logic, logic,
to an overall leading to an leading to
solution that is overall solution an overall
non-functional that is not solution that
completely is fully
functional functional
Accuracy of No Notation follows Notation follows a Notation

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Notation awardable a broadly recognisable follows a
content unrecognisable convention which recognisable
convention that is broadly convention
is applied discernible but is and is
inconsistently, applied applied
although aspects inconsistently consistently
of it are throughout
discernible

There are a maximum of 3 marks for functionality.


There are a maximum of 3 marks for accuracy of notation.
The marks for functionality and accuracy are awarded independently.

Example:

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
93
94
Question Answer Additional Guidance Mark
Number
10(b)
(Continued) Start

Switch No Switch No
up? down?

Ye Ye
s s
Turn right Turn left
lamp on lamp on

Wait 0.5 Wait 0.5

Turn right Turn left


lamp off lamp off

No No Ye
Switch Switch
off? off? s

Ye
s (6)

Issue 2.0 – December 2015 © Pearson Education Limited 2015


Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
Question Answer Additional Mark
Number Guidance
11 Pseudo code that has the following aspects:

Aspect of Marks
Solution 0 1 2 3
Functionality No awardable There are There are minor There are no errors
content significant errors errors in logic, in logic, leading to
in logic, leading to leading to an overall an overall solution
an overall solution solution that is not that is fully
that is non- completely functional.
functional. functional.
Accuracy of No awardable Notation follows a Notation follows a Notation follows a
Notation content broadly recognisable recognisable
unrecognisable convention which is convention and is
convention that is broadly discernible applied consistently

Issue 2.0 – December 2015 © Pearson Education Limited 2015


applied but is applied throughout.
inconsistently, inconsistently.
although aspects
of it are
discernible.
Efficiency, No awardable There are Techniques have Techniques have
Appropriateness, content significant errors been selected and been selected and
and Accuracy of in the selection used with some used accurately
Solution and accurate use accuracy, although and appropriately
of appropriate the techniques may throughout to
techniques. not be the most demonstrate an
appropriate. efficient solution.

There are a maximum of 3 marks for functionality.

Pearson Edexcel Level 1/Level 2 GCSE (9-1) in Computer Science – Sample assessment materials (SAMs) –
There are a maximum of 3 marks for accuracy of notation.
There are a maximum of 3 marks for efficiency, appropriateness, and accuracy of solution.
(9)
Each row is awarded independently.

95

You might also like