Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science PAPER 2: Application of Computational Thinking QP MAY 2025

Rating
-
Sold
-
Pages
34
Grade
A+
Uploaded on
26-09-2025
Written in
2025/2026

Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science PAPER 2: Application of Computational Thinking QP MAY 2025

Institution
COMPUTER SCIENCE
Course
COMPUTER SCIENCE

Content preview

Pearson Edexcel Level 1/Level 2
GCSE (9–1)
Tuesday 20 May 2025
1CP2/ Paper
Afternoon (Time: 2 hours) referen
Computer Science
🟐 🟐
ce
02 Thinking
PAPER 2: Application of Computational



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
Pearson printed
Edexcel and1/Level
Level electronic copies of
2 GCSE the Programming
(9–1) Language
Computer Science Subset 2:
PAPER (PLS)
Application
document (enclosed).
of Computational Thinking QP MAY 2025
Instructions
• Answer all questions on your
• Save the new or amended code in the ‘COMPLETED CODING’ folder using the
name given in the
computer.
• question.
Do not overwrite the original code and data files provided to you.
• You must not use the internet at any time during the
Information
examination.
• The total mark for this paper is 75.
• The marks for each question are shown in
– 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
brackets
you need.

Advice
• Read each question carefully before you start to answer it.
• Save your work
• Check your answers and work if you have time at the end.
regularly.




Turn over


P78600A
©2025 Pearson Education
Ltd. Y:1/1/1/1/1/1/1/1

, Answer ALL questions.
Suggested time: 10 minutes
1 A program calculates a discount based on the number of two-course
meals, three-course meals and drinks ordered by the user.

When the total number of meals exceeds eight, a 15% discount is applied.

When the number of three-course meals exceeds four, a 10% discount is applied.
When the number of two-course meals exceeds two, a 5% discount is applied.
Only one discount can be applied.

When the number of drinks does not match the total number of meals, an error
message is displayed. The total must not be calculated or displayed.


Open file Q01.py


Amend the code to:

• fix the syntax error on original line 4
cost2Courses = 15.00 Cost of meals

• fix the syntax error on original line 6
cost Drinks = 2.00

• fix the syntax error on original line 10
0 = numDrinks

• fix the TypeError on original line 28
total = "num2Courses" * cost2Courses

• fix the NameError on original line 29
total = total + num3Courses * cost33Courses

• fix the NameError on original line 38
total = 0.95 * tatol

• fix the logic error on original line 33
if (num2Courses - num3Courses > 8): # Get 15% discount

• fix the logic error on original line 34
total = 0.85 + total

• fix the logic error on original line 40
print ("Total is:", total)




2 P78600A
■■■■

, Do not change the functionality of the given lines of code.
Do not add any additional functionality.
Save your amended code file as Q01FINISHED.py


(Total for Question 1 = 9 marks)




P78600A 3
■■■■ Turn

, Suggested time: 10 minutes
2 A program is required to simulate the countdown to a rocket
launch. The user inputs a number between 1 and 10.

The program counts down from that number.

The wait time between each count is 1.5 seconds and is stored in the program code.
Here is the output of a functioning program, when the user enters the number

What is the countdown? 3
3
2
1
Ignition - lift off!
3



Open file Q02.py


Amend the code to:
• import the time library

• create a variable named countDown and set it to 0

• take the input from the user and convert it to an integer

• ensure the number inputted is valid by using two relational operators and
one logical operator

• ensure that the loop stops when it reaches 0

• display countDown for the user
• call a function in the time library to pause the program for the wait time

• reduce countDown by 1
• display “Ignition – lift off!” for the user.


Do not add any additional functionality.
Save your amended code as Q02FINISHED.py


(Total for Question 2 = 10 marks)




4 P78600A
■■■■

Written for

Institution
COMPUTER SCIENCE
Course
COMPUTER SCIENCE

Document information

Uploaded on
September 26, 2025
Number of pages
34
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
Pearson Edexcel Level 1/Level 2 GCSE (9–1) Computer Science QP&MS |2025
-
6 2025
$ 31.57 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
papersbybree Yale University
View profile
Follow You need to be logged in order to follow users or courses
Sold
992
Member since
3 year
Number of followers
576
Documents
4629
Last sold
1 week ago
PapersbyBree

All exam Papers Available at an affordable price AQAs,OCRs and Edexcel Exams Worry less as you are guaranteed of success

4.1

223 reviews

5
121
4
52
3
24
2
10
1
16

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions