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

Edexcel GCSE Computer Science PAPER 2 Application of Computational Thinking 2022

Rating
-
Sold
-
Pages
24
Grade
A+
Uploaded on
25-06-2023
Written in
2022/2023

Edexcel GCSE Computer Science PAPER 2 Application of Computational Thinking 2022

Institution
Course










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

Written for

Institution
Study
Course
School year
100

Document information

Uploaded on
June 25, 2023
Number of pages
24
Written in
2022/2023
Type
Exam (elaborations)
Contains
Only questions

Subjects

Content preview

e
nc
ie
Sc
er
Pearson Edexcel Level 1/Level 2 GCSE (9–1)
ut
mp
Co

Paper
Time 2 hours
1CP2/02
SE




reference
GC




 
l




Computer Science
22 ce
20 dex




PAPER 2: Application of Computational Thinking
E




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.


Instructions
• Answer all questions on your computer.
• ‘COMPLETED
Save the new or amended code using the file name provided and place it in the
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



*P71103A0108*
P71103A
©2022 Pearson Education Ltd.

Q:1/1/1/1/

, e
nc
ie
Sc
er
Answer ALL questions.
ut
mp
Co

Suggested time: 15 minutes
SE




1 A program is required to convert numbers entered by the user to their alphabetic
GC




equivalent. Only numbers from 5 to 30 are valid.
l
22 ce
20 dex




Adding 60 to the number and then applying the function chr() generates the
E




equivalent ASCII code for an uppercase letter.
The table shows accurate test data for a functional program.


Input Output

4 Invalid input

5 5 is equal to A

22 22 is equal to R

30 30 is equal to Z

31 Invalid input



Open file Q01.py


Amend the code to:
• create an integer variable named num and set it to 0
• take the input from the user and convert it to an integer
• check that the inputted number is between 5 and 30
• add 60 to the variable num and assign the result to the variable decimalCode
• join strings together with concatenation
• display an error message.
Do not add any additional functionality.
Save your amended code file as Q01FINISHED.py

(Total for Question 1 = 10 marks)




2
*P71103A0208* 

, e
nc
ie
Sc
er
Suggested time: 15 minutes
ut
mp
Co

2 A program uses turtle graphics to draw a simple
image. This is the image that must be produced.
SE
GC




Both the circle and the outside square are centred
l
22 ce




on the horizontal and vertical grid lines. The outside
20 dex




square is 400 × 400. The circle is 200 across. The circle
E




outline is coloured gold. All other lines are black.
The program has errors and does not work correctly.
Open file Q02.py
Amend the code to:
• add a comment to identify the data type of the argument to the
turtle.mode () subprogram call on original line 19
turtle.mode ("standard")
• fix the NameError on original line 23
screen.setup (WIDTH, HIGHT)
• fix the AttributeError on original line 28
theTurtle = turtle.turtle ()
• fix the TypeError on original line 36
theTurtle.pendown (200)
• fix the logic error that causes the vertical axis to be too far right on
original line 42
theTurtle.setpos (100, 200)
• fix the logic error that causes the vertical axis to be drawn too short on
original line 48
theTurtle.forward (100)
• fix the logic error that causes the outside square to tilt left of the vertical axis
on original line 56
theTurtle.setheading (95)
• add a line to set the size of the pen to the constant BIG on original line 68
• add a line to set the colour of the pen to gold on original line 71
• add a line to hide the turtle on original line 78.
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 = 10 marks)




*P71103A0308*
3
 Turn over

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.
academe Boston College
Follow You need to be logged in order to follow users or courses
Sold
76
Member since
2 year
Number of followers
57
Documents
744
Last sold
2 months ago

3.4

15 reviews

5
5
4
2
3
5
2
0
1
3

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