Pearson Edexcel Level 1/Level 2 GCSE (9–1)
Tuesday 19 May 2026
Afternoon (Time: 2 hours) Paper
reference 1CP2/02
Computer Science
PAPER 2: Application of Computational Thinking
You must have:
• a computer workstation with appropriate programming language code
editing software and tools, including an IDE that you are familiar with
that shows line numbers
• a ‘STUDENT CODING’ folder containing code and data files
• printed and electronic copies of the Program Language Subset (PLS)
document (enclosed).
Instructions
•• Answer all questions on your computer.
Save the new or amended code in the ‘COMPLETED CODING’ folder using the
name given in the question.
•• Do not overwrite the original code and data files provided to you.
You must not use the internet at any time during the examination.
Information
•• The total mark for this paper is 75.
The marks for each question are shown in brackets
– use this as a guide as to how much time to spend on each question.
• The ‘STUDENT CODING’ folder in your user area includes all the code and data files
you need.
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
P79590A
©2026 Pearson Education Ltd.
P:1/1/1/1/1/1/
*P79590A0112*
, Answer ALL questions.
Suggested time: 10 minutes
DO NOT WRITE IN THIS AREA DO NOT WRITE IN THIS AREA DO NOT WRITE IN THIS AREA
1 A program draws a square and a triangle.
Square
• The colour of all the lines is purple.
• All lines are equal width.
• Line width is a random number between 5 and 10.
Triangle
• The colour of each line may be different.
• The colour must be a random selection from an array.
• All lines are equal width.
• Line width is a random number between 5 and 10.
The program has errors.
Here is a greyscale image of the output produced by a fully functional program.
Python Turtle Graphics
2
*P79590A0212*