Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

GCSE EDEXCEL May 2024 Computer Science Paper 2

Vendu
11
Pages
32
Qualité
A+
Publié le
13-01-2024
Écrit en
2023/2024

Actual Exam Paper for GCSE EDEXCEL 2024 Computer Science - Application of Computational Thinking, Paper 2.

Établissement
Cours

Aperçu du contenu

Pearson Edexcel Level 1/Level 2 GCSE (9–1)
Thursday 25 May 2023
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 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.
•• 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


P72596RA
©2023 Pearson Education Ltd.
N:1/1/1/1/1/1/1/1/1/1/1
*P72596RA*

, BLANK PAGE




2 P72596RA


, Answer ALL questions.
Suggested time: 10 minutes
1 A program is being developed to show the average daily temperature and add up the
costs of buying ice cream.
• It displays each temperature stored in an array of temperatures.
• It adds up all the ice cream costs entered by the user, until the user enters 0.
• It then calculates a discount. When the total cost is over 100.00, the discount is
10%. Otherwise, the discount is 5%.


Open file Q01.py


Amend the lines at the bottom of the code to give the:
• name of a constant used in the program
• name of an array used in the program
• line number of an initialisation of a variable with a real number
• line numbers for a selection construct
• line numbers for a repetition construct
• line numbers for an iteration construct
• line number for an instruction that outputs information to the screen.


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


(Total for Question 1 = 7 marks)




P72596RA 3
 Turn over

, Suggested time: 15 minutes
2 A program is written for an exercise routine. It displays the names of warm-up
exercises, stored in an array. The user enters a number. That number of exercises is
selected randomly from the array and displayed.


Open file Q02.py


Amend the code to:
• fix the syntax error on original line 4
import randum
• fix the syntax error on original line 16
for exercise in exerciseTable
• complete original line 20 to generate a random number between 0 and 4
index = random.
• complete original line 8 to make the exercise names be string data types
exerciseTable = [ "squats", "planks", pushups,
"lunges", "burpees"]
• fix the IndexError on original line 21
name = exerciseTable[index + 1]
• fix the NameError on original line 22
print (naime)
fix the logic error on original line 19 that causes one less exercise to be printed

than is asked for
for count in range (numExercises - 1):
• use white space to improve the readability of the code.


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


(Total for Question 2 = 8 marks)




4 P72596RA


École, étude et sujet

Établissement
Cours
Cours
Année scolaire
1

Infos sur le Document

Publié le
13 janvier 2024
Fichier mis à jour le
12 septembre 2024
Nombre de pages
32
Écrit en
2023/2024
Type
Examen
Contenu
Seulement des questions

Sujets

7,73 €
Accéder à l'intégralité du document:
Acheté par 11 étudiants

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien


Document également disponible en groupe

Avis des acheteurs vérifiés

Affichage de tous les 5 avis
10 mois de cela

9 mois de cela

1 année de cela

1 année de cela

Thanks for your purchase!

1 année de cela

1 année de cela

Thanks for your purchase!

1 année de cela

1 année de cela

Thank you for your purchase !

5,0

5 revues

5
5
4
0
3
0
2
0
1
0
Avis fiables sur Stuvia

Tous les avis sont réalisés par de vrais utilisateurs de Stuvia après des achats vérifiés.

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
premiumpapers Imperial College London
S'abonner Vous devez être connecté afin de pouvoir suivre les étudiants ou les formations
Vendu
3490
Membre depuis
3 année
Nombre de followers
707
Documents
200
Dernière vente
20 heures de cela
*PREMIUMPAPERS*

FINALLY!!! The Official 2025 Exam Papers Are Now Available To Purchase! If A Paper Is Not Listed Up, DM Our Instagram @jeeaaspapers. Don

4,4

1078 revues

5
777
4
147
3
61
2
18
1
75

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions