Centrecnumber Candidatecnumber
Surname c
Forename(s) c
Candidatecsignature c
Icdeclarecthisciscmycowncwork.
GCSE
COMPUTER SCIENCE c
Paper 1 Computational thinking and programming skills – VB.Net
c c c c c c c c
Time allowed: 2 hours
c c c
Materials
Therecarecnocadditionalcmaterialscrequiredcforcthiscpaper. ForcExaminer’scUse
Youcmustcnotcusecaccalculator.
Question Mark
Instructions 1
Usecblackcinkcorcblackcball-pointcpen.c Usecpencilconlycforcdrawing.
2–3
Answercallcquestions.
Youcmustcanswercthecquestionscincthecspacescprovided. 4–5
Ifcyoucneedcextracspacecforcyourcanswer(s),cusectheclinedcpagescatcthecendcofct 6–7
hiscbook.c Writecthecquestioncnumbercagainstcyourcanswer(s).
Docallcroughcworkcincthiscbook.cCrosscthroughcanycworkcyoucdocnotcwantcto 8–9
cbecmarked. 10
QuestionscthatcrequirecaccodedcsolutioncmustcbecansweredcincVB.Net. 11
Youcshouldcassumecthatcallcindexingcinccodecstartscatc0cunlesscstatedcotherwise.
12
13
Information
Thectotalcnumbercofcmarkscavailablecforcthiscpapercisc90. 14
TOTAL
Advice
Forcthecmultiple-choicecquestions,ccompletelycfillcinctheclozengecalongsidecthecappropriatecanswer.
CORRECTcMETHOD WRONGcMETHODS
Ifcyoucwantctocchangecyourcanswercyoucmustccrosscoutcyourcoriginalcanswercascshown.
Ifcyoucwishctocreturnctocancanswercpreviouslyccrossedcout,cringcthecanswercyoucnowcwishctocselectcascsh
own.
*jun22 5251C01*
c
IB/G/Jun22/E12 8525/1C
, 2
Docnotcwrit
ecoutsidecth
Answercallcquestions. e box
0 1 Ancalgorithm,cthatcusescthecmoduluscoperator,chascbeencrepresentedcusingc
pseudo-codecincFigurec1.
Linecnumberscarecincludedcbutcarecnotcpartcofcthecalgorithm.
Figurec1
1 icc USERINPUT
2 IFcicMODc2c=c0cTHEN
3 OUTPUTcic*ci
4 ELSE
5 OUTPUTci
6 ENDIF
Thecmoduluscoperatorciscusedctoccalculatecthecremaindercaftercdividingconecintegercbyca
nother.
Forcexample:
14cMODc3cevaluatesctoc 2
24cMODc5cevaluatesctoc 4
0 1 . 1
Shadeconeclozengecthatcshowsctheclinecnumbercwherecselectionciscfirstcusedci
ncthecalgorithmcincFigurec1.
[1cmark]
A Linecnumberc1
B Linecnumberc2
C Linecnumberc3
D Linecnumberc4
*02*
IB/G/Jun22/8525/1C
, 3
Docnotcwrit
ecoutsidecth
0 1 . 2 e box
ShadeconeclozengecthatcshowscthecoutputcfromcthecalgorithmcincFigurec1cwhe
ncthecusercinputcisc4
[1cmark]
A 0
B 2
C 4
D 8
E 16
0 1 . 3
Shadeconeclozengecthatcshowsctheclinecnumbercwherecassignmentciscfirstcusedci
ncthecalgorithmcincFigurec1.
[1cmark]
A Linecnumberc1
B Linecnumberc2
C Linecnumberc3
D Linecnumberc4
0 1 . 4
Shadeconeclozengecthatcshowsctheclinecnumbercthatccontainscacrelationalcoperat
orcincthecalgorithmcincFigurec1.
[1cmark]
A Linecnumberc1
B Linecnumberc2
C Linecnumberc3
D Linecnumberc4
Questionc1ccontinuesconcthecnextcpage
*03*
IB/G/Jun22/8525/1C
, 4
Docnotcwrit
ecoutsidecth
Turncoverc► e
*03*
IB/G/Jun22/8525/1C