GCSE L1 L2 Computer Science 2020 Sample Assessment Materials For Paper 2
GCSE L1 L2 Computer Science 2020 Sample Assessment Materials For Paper 2
Computer Science
Paper 2: Application of Computational Thinking
Instructions
• Answer all the questions on your computer.
• Save new or amended code using the file name provided and place it in the
‘COMPLETED CODING’ folder.
• You must not use the internet at any time during the examination.
Information
• The ‘STUDENT CODING’ folder in your user area includes all the code and
data files you need.
• The total mark for this paper is 75.
• The marks for each question are shown in brackets.
Advice
• Read each question carefully before you start to answer it.
• Save your work regularly.
• Check your answers and work if you have time at the end.
Turn over
*S67286A*
S67286A
©2020 Pearson Education Ltd.
1/1/1/1
Answer ALL questions.
Suggested time: 10 minutes
1 A program simulates the roll of a dice. The program uses a random number generator
to create a random integer, between 1 and 6, to represent the roll.
2
S67286A
Suggested time: 20 minutes
2 A programmer has started to write a program, but it does not work correctly.
The program should ask the user, “Would you like me to sing?”. The user then
responds ‘y’ or ‘n’. If the user types ‘y’, then the computer displays the lines of a song.
3
S67286A
Turn over
Suggested time: 20 minutes
3 A program is needed that must meet the following requirements:
• accept only numbers from 1 to 20, inclusive
• print ‘invalid input’ if the input is outside the permitted range. You can assume
only numbers will be entered
• print the input number followed by ‘is even’, if the number is even
• print the input number followed by ‘is odd’, if the number is odd.
4
S67286A
Suggested time: 20 minutes
4 A program takes a year group as input and outputs the stage of education
the year group belongs to.
The program loops continually until the user inputs 0 to stop the program.
Input Output
0 Exits program
1, 2, 3, 4, 5, 6 Primary
7, 8, 9, 10, 11 Secondary
12, 13 College
Amend the code to make the program work and produce the correct output.
You will need to rearrange the lines.
Use comments, white space, indentation and layout to make the program easier
to read and understand.
Do not change the functionality of the given lines of code.
Do not add any additional functionality.
Save your amended code file as Q04FINISHED.py
5
S67286A
Turn over
Suggested time: 25 minutes
5 Students are collecting data about the amount of water needed to fill different sized
paper cones. Their measurements are compared to a calculated volume.
The formula to calculate the volume of a cone is:
1
V= πr2h
3
• V is volume
• π is the constant Pi
• r is the radius of the base of the cone
• h is the height of the cone.
A program and subprogram have been started to carry out the calculation.
6
S67286A
Suggested time: 25 minutes
6 A program is needed to authenticate system logins consisting of a login name and
a four-digit passcode.
These items for current users are stored in a two-dimensional list with 19 records.
The list contains user number, last name, first name, login name and passcode.
The list is sorted by login name. All users have passcodes that are integers between
1000 and 9999.
7
S67286A
Turn over
Open file Q06.
8
S67286A
Paper 2 mark scheme
Please note the following regarding the application of this mark scheme:
• Pearson have developed the Programming Language Subset (PLS) document to specify
which parts of Python 3 students are required to learn in order to access the assessments.
Pearson will not go beyond the scope of the PLS in its assessments. However, if students
use alternative valid techniques to answer questions in the assessments, they will also be
credited.
• At the time of publication, this qualification uses Python 3 as the underlying programming
paradigm for the assessment and teaching and learning of the qualification. Python 2 will
not be supported and should not be used in the delivery of this qualification. If at some
time in the future a Python 4 is released, we will work closely with our centres before
deciding whether to remain with Python 3 or to move to the newer version of the language.
• Google are developing some Google Python library equivalents (gPython) that might be
required for Chrome-based schools. Centres that avail of these Google library functions will
also be credited.
• The AO breakdown is shown for paper 2 to give greater clarity to the skills demonstrated in
each marking point. This is necessary for this practical paper as the majority of the
marking points are interlinked in a way that is more complex than in a traditional written
paper.
0 1 2 3 Max.
• There has been little attempt to • There has been some attempt to • The problem has been decomposed 3
decompose the problem. decompose the problem. clearly into component parts.
• Some of the component parts of • Most of the component parts of the • The component parts of the
the problem can be seen in the problem can be seen in the problem can be seen clearly in the
No rewardable material
0 1 2 3 Max.
Functionality (when the code Functionality (when the code Functionality (when the code 3
is run) is run) is run)
• The component parts of the • The component parts of the • The component parts of the
program are incorrect or program are complete, providing a program are complete, providing a
No rewardable material
incomplete, providing a program of functional program that meets functional program that fully meets
limited functionality that meets most of the stated requirements. the given requirements.
some of the given requirements. • Program outputs are mostly • Program outputs are accurate,
• Program outputs are of limited accurate and informative. informative, and suitable for the
accuracy and/or provide limited • Program responds predictably to user.
information. most of the anticipated input. • Program responds predictably to
• Program responds predictably to • Solution may not be robust within anticipated input.
some of the anticipated input. the constraints of the problem. • Solution is robust within the
• Solution is not robust and may constraints of the problem.
crash on anticipated or provided
input.
Question Answer Additional guidance Mark
number
4 The following assessment objectives are (15)
assessed:
• AO2.1b
• AO3.1
• AO3.2a
• AO3.2b
• AO3.2c
0 1 2 3 Max.
Functionality (when the code Functionality (when the code Functionality (when the code 3
is run) is run) is run)
• The component parts of the • The component parts of the • The component parts of the
program are incorrect or program are complete, providing a program are complete, providing a
No rewardable material
incomplete, providing a program of functional program that meets functional program that fully meets
limited functionality that meets most of the stated requirements. the given requirements.
some of the given requirements. • Program outputs are mostly • Program outputs are accurate,
• Program outputs are of limited accurate and informative. informative, and suitable for the
accuracy and/or provide limited • Program responds predictably to user.
information. most of the anticipated input. • Program responds predictably to
• Program responds predictably to • Solution may not be robust within anticipated input.
some of the anticipated input. the constraints of the problem. • Solution is robust within the
• Solution is not robust and may constraints of the problem.
crash on anticipated or provided
input.
Question Answer Additional guidance Mark
number
6 The following assessment objectives are Considerations: (15)
assessed: • 6.1.1 Use
• AO2.1b decomposition and
• AO3.1 abstraction to
analyse a problem
• AO3.2a (inputs, outputs,
• AO3.2b processing,
• AO3.2c initialisation,
design)
• 6.6.1 Decompose
Award marks as shown. into subproblems
• 6.1.2 Write in a
Points-based mark scheme: high-level language
Inputs • 6.2.2 Use
• Accepts and responds to user input (1) sequencing and
selection
• Validation with range check using relational components
operators >=1000, <=9999 (1)
Process
• Use of library subprograms len() (1) to
work with any number of users in the list
• Use of Boolean (1) to stop loop when found
or passed over
• Use of 2-dimensional indexing (1) in user
list
Outputs
• Display of appropriate messages (1)
0 1 2 3 Max.
• There has been little attempt to • There has been some attempt to • The problem has been decomposed 3
decompose the problem. decompose the problem. clearly into component parts.
• Some of the component parts of • Most of the component parts of the • The component parts of the
the problem can be seen in the problem can be seen in the problem can be seen clearly in the
No rewardable material
0 1 2 3 Max.
• There has been little attempt to lay • There has been some attempt to • Layout of code is effective in 3
out the code into identifiable lay out the code to aid readability, separating sections, e.g. putting all
sections to aid readability. although sections may still be variables together, putting all
No rewardable material
0 1 2 3 Max.
Functionality (when the code Functionality (when the code Functionality (when the code 3
is run) is run) is run)
• The component parts of the • The component parts of the • The component parts of the
program are incorrect or program are complete, providing a program are complete, providing a
No rewardable material
incomplete, providing a program of functional program that meets functional program that fully meets
limited functionality that meets most of the stated requirements. the given requirements.
some of the given requirements. • Program outputs are mostly • Program outputs are accurate,
• Program outputs are of limited accurate and informative. informative, and suitable for the
accuracy and/or provide limited • Program responds predictably to user.
information. most of the anticipated input. • Program responds predictably to
• Program responds predictably to • Solution may not be robust within anticipated input.
some of the anticipated input. the constraints of the problem. • Solution is robust within the
• Solution is not robust and may constraints of the problem.
crash on anticipated or provided
input.