.Archprim Comp Lb5 Ans
.Archprim Comp Lb5 Ans
set RedLight to ON
set AmberLight to ON
set GreenLight to OFF
wait 3
It is important for learners to set the light Answers will vary as the value assigned to
when it changes; they do not need to repeat the PlayerScore depends on the colour of the learner’s
assignments if the light has not changed. shirt, their shoe size and their favourite game.
Activity 1 Programming task 1
Two model answers are shown on page 46 of Part A
the Learner’s Book. The scenarios may vary but
The activity is based on the predict part of PRIMM.
should contain a condition with two possible
So learners should be encouraged to think about
branches that are clearly labelled true and false.
what might happen, and they should not feel
Unplugged activity 2 pressurised to get it right. Formal answers are
provided in Part B after they have run the program.
Part A
Top left:
1 The condition is checking if the mouse
Start pointer is touching the sprite.
2 If the condition is True, the sprite will spin
anticlockwise.
3 If the condition is False, nothing will happen.
is UpArrow True Top right:
Move
equal to
player up 1 The condition is checking if the space key
pressed?
is pressed.
False 2 If the condition is True, the backdrop will
change to Space City 1.
Do not move
3 If the condition is False, the backdrop will
player change to Space City 2.
Bottom left:
1 The user is asked to enter the name of
the sprite and their answer is assigned to
the variable SpriteName. The condition is
Stop
checking if SpriteName is cat.
2 If the condition is True, the message ‘That’s
right! It is Cat.’ is displayed for 2 seconds.
Part B 3 If the condition is False, the message
‘Good guess. It is the cat sprite.’ is displayed
Possible answers will include different inputs (i.e. for 2 seconds.
a different button) and outputs, but the structure
should be the same as for Part A. Bottom right:
1 The condition is checking if the ‘m’ key
Questions is pressed.
1 ‘Good morning’ 2 If the condition is True, the count variable
2 ‘Good afternoon’ decreases by 1.
3 ‘How are you?’ 3 If the condition is False, the count variable
does not change.
Unplugged activity 3
Part B
Example code for round three:
1 The turn left 15 degrees block.
IF FavouriteGame equal to "football"
2 a
The ‘switch backdrop to Space City 1’
THEN set PlayerScore to PlayerScore + 2 block.
ELSE b The ‘switch backdrop to Space City 2’
set PlayerScore to PlayerScore + 1 block.
WRITE DOWN PlayerScore
c The value assigned to Count decreases 2 Solution 2 has the most loops. A new loop
until you release the ‘m’ key. The value would be needed each time another column is
assigned to count increases by 1. added to the grid.
3 The same instructions for planting trees,
Programming task 2 moving up and down and turning are written
In addition to the code supplied in the source file for each square in solution 1. The instructions
1.5_space_pilot, learners should have created the have been shortened and put into loops in
following: solution 2, one for going up and one for
coming down the grid. Solution 2 still has the
same set of instructions written multiple times.
Solution 3 puts the loops that are written
multiple times in Solution 2 and puts them
inside another loop.
4 Solution 3, as it is the most concise.
It solves the problem with the fewest
lines of instructions.
5 Solution 3 uses nested iteration. The loops on
lines 2 and 11 are inside the loop on line 1.
Questions
1 7
2 a 6
b 7
c 6
d 5
Unplugged activity 1
1 36
2 36
3 30
4 15
5 Solution 2 as it only planted trees where
necessary. Solution 2 also has fewer of the
same instructions as it checks if the robot is
at the top or bottom of the grid in order to
decide which way to turn.
6 We could write an algorithm to only go where
there are no trees, instead of moving up and
down the whole grid.
Activity 2 Part C
1 Solution 1 uses sequence and iteration to get Statement Input, process,
the ball to the finish. The ball moves right by condition or
repeatedly changing the x position by 10, then output
it moves the ball down by repeatedly changing
the y position by 10. It then repeats these 1 The chatbot asks the Output
steps until the ball reaches the end. Solution user ‘Do you like sport?’
2 uses sequence, selection and iteration. With 2 The user types their Input
selection, the program checks if the ball is answer to the question.
touching the black border. If it is, it changes
3 The user’s reply is Process
the direction of movement from x to y.
assigned to the variable
2 Solution 2 is more efficient as it solves the Sport.
problem in fewer steps. Solution 1 is less efficient
4 The variable Sport is Condition
as many of the same instructions are repeated,
checked to see if it is
but because each section of the route is a
equal to ‘yes’.
different length, we cannot use one repeat loop.
5 The chatbot replies Output
3 Solution 2 is more likely to work as it will keep
‘Great, exercise is
following the black border whereas solution 1
will need another repeat loop with the correct good for your mental
number of repetitions added to it. and physical health!’
or ‘Maybe you have
Activity 3 not found the right
Learners’ cards should contain the keyword, sport yet.’
definition and an example. The examples will vary.
Part D
Input – The user provides or gives data to a
computer, e.g. entering numbers on a keyboard. 1 OUTPUT: say ‘Do you like sport?’
Process – Calculations, assigning variables or 2 INPUT: set answer to USER INPUT
instructions carried out, e.g. set Sum to 5 + 5 3 PROCESS: set Sport to answer
Conditions – Questions that need to be checked to 4 CONDITION: IF Sport equal to ‘yes’
decide what instructions to carry out, e.g is Sum
equal to 10 5 OUTPUT: THEN say ‘Great,
exercise is good for your physical and
Output – Information that you get out of a mental health’
computer system after it has been processed, e.g.
Display Sum. 6 ELSE
Activity 1
Here is one example of a poster relating to basketball.
Object: Ball.
Can bounce off or roll on the
floor and move through the
air when thrown.
Object: Basketball hoop.
Makes a swoosh sound
when a ball passes through
without touching the ring.
Object: Player.
Can shoot, dribble and pass
the ball.
2 For example:
Unplugged activity 2
Answers and discussion will vary, but encourage
learners to discuss why they answered the way
they did.
Unplugged activity 3
Stage Tasks Roles
Analysis Carry out research on recycling to understand Analyst
it better.
Interview classmates about how they recycle and End user; analyst
what features they think the app should have.
Create success criteria for the recycling app. Analyst; project manager
Decide who should do what in the project. Project manager
Design Design the menus, buttons, layout, and navigation UX designer
for the app.
Analyse how the end user will be able to use the UX designer, analyst
app easily.
Software developer,
Plan algorithms for how the app will work. project manager
Development Create the program with code using the algorithms. Software developer
Create video tutorials on how to recycle. Content creator
Make designs for the different pages in the app. Graphic designer
Testing Use the app and try all the different features to see if
they work. Tester; end user
Fix any bugs the app might have. Software developer
Evaluation Check the app meets the original success criteria. Project manager, analyst,
end user
Decide if any improvements could be made to Analyst, end user
the app.
Programming task 1
Learners should tick criteria 1, 4, 5, 6, 7, 8, 9, 10 and 12, but cross criteria 3 (the question is displayed until
the user inputs an answer) and 11 (the quiz has only one question). Answers for criterion 2 may vary.
Unplugged activity 4
Answers will vary, possible questions could include:
Structure Q1 Q2 Q3 Q4
Ask question What do you use What is the word What is data that What is
to store values for breaking a you put into a information that
that can change in problem down computer called? you get out of a
a program? into smaller parts? computer called?
THEN Say Yes! That is Yes! That is Yes! That is Yes! That is
correct. You get correct. You get correct. You get correct. You get
a point. a point. a point. a point.
ELSE Oh no. The Oh no. The Oh no. The Oh no. The
correct answer correct answer is correct answer correct answer
Say is variable. decomposition. is input. is output.
Unplugged activity 4
Learners’ forms should include:
• Question: How do you travel to school?
• Answer options could include (depending Practical task 2
on where you live): walking, car, bus, 1 A data validation error message appears when
car share, bicycle, taxi, ferry, multiple you type ‘ouzzle’ into cell B3. This is because
(with free-text option), other (with the data entered does not match the criteria
free-text option). for this column.
• Alternatively learners could opt for a free- 2 Learners’ answers will vary.
text answer.
3 A data validation error message appears when
Learners should also recognise that not you type ‘one’ or ‘two’ into cell D2. This is
everyone travels to school in the same way because the data entered does not match the
every day. They could ask: ‘Do you travel to criteria for this column.
school the same way every day? If not, write
down how you travel on each day.’ They could 4 When you type ‘2’ into cell D2, the value is
leave space for written answers. Or learners accepted. This is because the data type entered
could change the first question so that there is matches the restrictions for this column. This
space to input more than one option. column will only accept numbers as a data
type and not text.
Questions
5 Battle and racing
6 Highest: puzzle; lowest: multiplayer and roleplay.
7 Highest: roleplay; lowest: adventure.
8 Not really – it just compares votes up to votes down. You could work it out from the chart,
but it is not easy to see at a glance which game is most/least popular.
Practical task 2
Learners’ should produce a bar chart like this and give their chart a sensible name.
Questions
9 Their scores are negative numbers because they got more votes down than up.
10 These games had the same number of up votes and down votes so their popularity score is 0.
11 Puzzle
12 Roleplay
Activity 2
Learners should create a bar chart for the first part of the task. They should recognise that pizza is
the most popular food item.
For the second task, learners should create a line graph. They should label the axes
Age and Height in cm. It could look like this.
Unplugged activity 3
1 It is continuous data. There are a lot of bars and some overlap each other, so it
looks messy and it is not easy to see what is going on. Another problem is that the
chart does not have a legend, so there is no way to know what the colours represent.
2 A line chart.
Practical task 3
Unplugged activity 4
Situation A Possible answers Situation B Possible answers
The person reading the This is deliberately The person reading Learners should be
chart is hard of hearing. misleading – no the chart is colour- aware that the chart
changes would be blind and cannot colours should not
needed if the person is tell the difference include red or green.
hard of hearing. between red and
green.
The person reading the Learners should The person reading Learners should
chart is only interested recognise that they the chart wants to be suggest that all
in the temperature can remove the data able to see all of the days, hours and
in July. for other months from data points with lots temperature
the chart. of detail. recordings should
be visible.
It will be viewed on a The chart should It will be viewed on a The chart can have
small screen. have less detail as it big screen. lots of detail.
could be missed on a
small screen.
Practical task 4
Learners’ answers will vary, but they should have changed the chart size, line thickness,
titles and labels, and colours.
Questions
13 =B20-C20
14 =B24-C24
Practical task 5
Practical task 6
Practical task 7
The average scores have decimal places because they divide the test results by the number of students.
The average score for Test 2 is higher than the other tests.
Zara’s video stream has stopped. This could be 6 Any from: IP address to send to; IP address
due to the connection breaking, or it could be sent from; the data; information about the
interference for other nearby signals if she is using order of the data in the packet.
a wireless connection. The broken connection 7 Any from: more data is needed overall; when
could be local (in the house) or it could be that a there are lots of small bits of data it is more
cable somewhere along the internet connection has likely that some may get lost; it takes time to
been damaged or broken. split the data into packets; it takes time to put
If Zara’s video stops playing, the server that all of the packets back together again.
the video is on may have lost power. Or maybe 8 Any from: smaller chunks of data can travel
the server has stopped working altogether more quickly over the internet; if only small
(hardware failure). bits of data get lost, these are easier to request
again.
Activity 1
Device Research
Magnetic hard Cost Usually inexpensive when compared to other storage
drive Memory size Can be very large – millions of megabytes, which is
often measured in TB (or terabytes)
Internal/external/both Can be both internal and external, but often internal
Use Inside desktop computers and laptops
Solid state Cost Usually more expensive than magnetic drives
drive (SSD) Memory size Similar to magnetic hard drives
Internal/external/both Often external (memory sticks and SD cards) or found
inside mobile devices
Use Used to transfer files or data between devices
USB drive Cost Usually inexpensive
Memory size Stores less than magnetic and solid state drives due to
physical size
Internal/external/both External
Use USB drives are very small versions of solid state drives
SD card Cost More expensive than USB drives, less expensive than
SSD or magnetic drives
Memory size Usually similar storage size to USB drives
Internal/external/both External
Use An alternative to using USB drives
Tape drive Cost Inexpensive compared to other high-capacity
storage devices
Memory size Millions of megabytes
Internal/external/both Most likely internal devices on large servers
Use Normally used to save lots of data in case of
emergencies (backups of large systems)
CD/DVD drive Cost Quite inexpensive compared to other devices
Memory size Limited storage space – only up to a film or movie,
or a thousand songs
Internal/external/both Both
Use Often used for storing films or songs to sell in shops
Unplugged activity 2
1 A laptop: Mobile devices:
• HDD or SSD; CD/DVD drive (on older • SSD drive as these are very small.
laptops). Both of these will be internal.
• Mobile devices often have an SSD card
• It may have an option for a USB drive slot or connection.
and SD card.
• They would not usually have any other
• Laptops are likely to have external external options.
storage devices as there is limited space in
A desktop computer:
the laptop.
• HDD and SSD; CD/DVD drive (on older
computers). Both of these will be internal.