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

Pearson Edexcel Level 1Level 2 GCSE (9–1) Computer Science PAPER 2 Application of Computational T

Rating
5.0
(3)
Sold
-
Pages
26
Grade
A+
Uploaded on
27-01-2025
Written in
2024/2025

Pearson Edexcel Level 1Level 2 GCSE (9–1) Computer Science PAPER 2 Computer Science PAPER 2 Application of Computational T

Institution
Course










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

Written for

Course

Document information

Uploaded on
January 27, 2025
Number of pages
26
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Pearson Edexcel Level 1/Level 2 GCSE (9–1)
m m m m m m




Timem2mhour
s
Paper
reference 1CP2/02
mmm
Computer Science m



PAPER 2: Application of Computational Thinking
m m m m m




Yoummustmhave:
• amcomputermworkstationmwithmappropriatemprogrammingmlanguagemcodem
editingm softwarem andm tools,m includingm anm IDEm thatm youm arem familiarm withm th
atmshowsmlinemnumbers
• am‘STUDENTm CODING’mfolderm containingm codem andm datam files
• printedmandmelectronicmcopiesmofmthemProgrammLanguagemSubsetm(PLS
)mdocument.


Instructions
• Answer all questions on your computer.
m m m m m


• ‘COMPLETED
Save the new or amended code using the file name provided and place it in the
m

CODING’ folder.
m m

m
m

m
m m m m m m m m m m m




• You must notm use the internet at any time during the examination.
m m m m m m m m m m




Information

• The ‘STUDENT CODING’ folder in your user area includes all the code and dat
m
a files you need.
m m m
m m m m m m m m m m m m




•• The total mark for this paper is 75.
m m m

The marks for each question are shown in brackets.
m m m
m

m
m m

m
m

m m m




Advice

• Read each question carefully before you start to answer it.
m m m m m m m m m


• Check yourwork
Save your regularly
m m m


• answers and work if you have time at the end.
m m m m m m m m m m m


.




Turnmover


P71103A
©2022m Pearsonm Educationm Ltd.
Q:1/1/1/1/

, AnswermALLmquestions.

Suggestedmtime:m15mminutes
1 Am programm ism requiredm tom convertm numbersm enteredm bym them userm tom theirm alphabeti
cmequivalent.mOnlymnumbersmfromm5mtom30maremvalid.

Addingm60mtomthemnumbermandmthenmapplyingmthemfunctionmchr()mgeneratesmth
emequivalentmASCIImcodemformanmuppercasemletter.

Themtablemshowsmaccuratemtestm datamformamfunctionalmprogram.


Input Output

4 Invalidminput

5 5mismequalmtomA

22 22mismequalmtomR

30 30mismequalmtomZ

31 Invalidminput



OpenmfilemQ01.py


Amendmthemcodemto:
• createm anm integerm variablem namedmnummandmsetmitm tom 0
• takemthem inputmfrommthem userm andmconvertm itm tom anminteger
• checkmthatmtheminputtedmnumbermismbetweenm5mandm30
• addm60mtomthemvariablemnummandmassignmthemresultmtomthemvariablemdecimalCode
• joinm stringsm togetherm withm concatenation
• displaym anm errorm message.
Dom notm addm anym additionalm functionality.

SavemyourmamendedmcodemfilemasmQ01FINISHED.py

m (TotalmformQuestionm1m=m10mmarks)




2


, Suggestedmtime:m15mminutes
2 Amprogrammusesmturtlemgraphicsmtomdrawmamsimpl
emimage.mThism ism them imagem thatm mustm bem produce
d.

Bothmthem circlem andm them outsidem squarem aremcentredm
onm them horizontalm andm verticalm gridm lines.mThem outsid
e
squaremism400mm 400.mThemcirclemism200macross.mThemcirclemou
tlinemismcolouredmgold.mAllmothermlinesmaremblack.
Them programm hasm errorsm andm doesm notm workm correctly.mOpe
nmfilemQ02.py

Amendmthemcodemto:

• addm am commentm tom identifym them datam typem ofm them argumentm tom th
emturtle.modem()msubprogrammcallmonmoriginalmlinem19
turtle.modem("standard")
• fixm them NameErrorm onm originalm linem 23
screen.setupm(WIDTH,mHIGHT)
• fixmthemAttributeErrormonmoriginalmlinem28
theTurtlem=mturtle.turtlem()
• fixmthemTypeErrormonmoriginalmlinem36
theTurtle.pendownm(200)
• fixmthemlogicmerrormthatmcausesmthemverticalmaxismtombemtoomfarmrightmo
nmoriginalmlinem42
theTurtle.setposm(100,m200)
• fixmthem logicm errorm thatmcausesm them verticalm axismtom bem drawnm toomshortm o
nmoriginalmlinem48
theTurtle.forwardm(100)
• fixmthemlogicmerrormthatmcausesmthemoutsidemsquaremtomtiltmleftmofmthemverticalmax
ismonmoriginalmlinem56
theTurtle.setheadingm(95)
• addmamlinemtomsetmthemsizemofmthempenmtomthemconstantmBIGmonm originalmlinem 68
• addmamlinemtomsetmthemcolourmofmthempenmtomgoldmonmoriginalmlinem71
• addmamlinemtomhidemthemturtlemonmoriginalmlinem78.
Dom notm changem them functionalitym ofm them givenm linesm ofm code.m

Domnotmaddmanymadditionalmfunctionality.

SavemyourmamendedmcodemfilemasmQ02FINISHED.py

m (TotalmformQuestionm2m=m10mmarks)




3
 Turnmover
$18.49
Get access to the full document:
Purchased by 0 students

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Reviews from verified buyers

Showing all 3 reviews
1 month ago

10 months ago

11 months ago

5.0

3 reviews

5
3
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
Allstudyyguide Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
13
Member since
1 year
Number of followers
2
Documents
546
Last sold
1 month ago

4.8

850 reviews

5
713
4
97
3
24
2
12
1
4

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