100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

May 2025 Pearson Edexcel: GCSE (9–1) Computer Science 1CP2/02 – Paper 2: Application of Computational Thinking – Merged Question Paper & Mark Scheme

Rating
-
Sold
-
Pages
68
Grade
A+
Uploaded on
04-10-2025
Written in
2025/2026

May 2025 Pearson Edexcel: GCSE (9–1) Computer Science 1CP2/02 – Paper 2: Application of Computational Thinking – Merged Question Paper & Mark Scheme 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 Q 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 over What is the countdown? 3 3 2 1 Ignition - lift off! 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 3 Open file Q 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 ■■■■ Suggested time: 20 minutes 3 A program allows the user to enter a string. If the string is fewer than three characters long, an error message is displayed and the string is not processed. Otherwise, the program adds up the ASCII values for each character in the string. When the total is divisible by four, a four is added to the string. When the total is divisible by five, a five is added to the string. When the total is divisible by both four and five, a four is added to the string. When the total is not divisible by either four or five, a zero is added to the string. The program displays the total value and the changed string. The table shows accurate test results for six inputs. Input Output X String must be three or more characters long XY String must be three or more characters long cup 328 cup4 snow 455 snow5 Ian 280 Ian4 HAT 221 HAT0 <empty> No output, but exits program The lines of code in the program are mixed up. The indentation has been done for you. Open file Q Amend the code to make the program work and produce the c

Show more Read less
Institution
May 2025 Pearson Edexcel: GCSE Computer Scie
Course
May 2025 Pearson Edexcel: GCSE Computer Scie











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
May 2025 Pearson Edexcel: GCSE Computer Scie
Course
May 2025 Pearson Edexcel: GCSE Computer Scie

Document information

Uploaded on
October 4, 2025
Number of pages
68
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Paper


Computer Science
🟐 🟐


PAPER 2: Application of Computational Thinking
May 2025 Pearson Edexcel: GCSE (9–1) Computer Science
1CP2/02 – Paper 2: Application of Computational
Thinking – Merged Question Paper & Mark Scheme

a computer workstation with appropriate programming language code editing software
and tools, including an IDE that you are familiar with that shows line numbers

printed and electronic copies of the Programming 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.
•• DoYounotmustoverwrite the original code and data files provided to you.
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


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 over

, 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 3

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


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
■■■■

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.
ScholarsDove Arizona State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
46
Member since
3 months
Number of followers
0
Documents
678
Last sold
17 hours ago

4.8

4 reviews

5
3
4
1
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions