Time left25:00 Answered 0 of 14 25 marks
MskProd Year 7 unit exam 25 minutes 25 marks Original paper

Programming Essentials in Scratch: Unit Exam B

Reading and tracing Scratch scripts, choosing blocks, loops that repeat until a condition is true, and finding bugs.

Instructions

Time allowed
25 minutes
Total marks
25
Calculator
No calculator is permitted.
  • Answer all the questions.
  • The number of marks for each question is shown in brackets. Use it as a guide to how much to write.
  • The clock at the top counts down from the real time allowed. When it reaches zero the paper is locked and marked, as it would be collected in the exam hall.
  • Read every question to the end before answering. Where a question says tick two boxes, tick exactly two: ticking more than asked scores nothing. Type one word and number answers carefully, because they are marked exactly.

Questions

Answer every question, then finish the paper to have it marked. Marking as you go teaches you far less.

25 marks
1What does sequence mean in programming?1 mark

Tick one box.

Mark scheme0 / 1
  • LC Instructions carried out in the order they are written
Model answer

Sequence means the instructions run one after another, in order.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
2What number does the sprite say?1 mark
Scratch blocks
set [lives] to 3
change [lives] by -1
change [lives] by -1
say (lives)

Mark scheme0 / 1
  • L1
Model answer

3 - 1 - 1 = 1.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
3Tick one box in each row to show which category each block belongs to.4 marks
MotionLooksSoundControl
move 10 steps
say Hello for 2 seconds
play sound meow
repeat 10

Tick one box in each row.

Mark scheme0 / 4
  • Lmove 10 steps: Motion
  • Lsay Hello for 2 seconds: Looks
  • Lplay sound meow: Sound
  • Lrepeat 10: Control
Model answer

Movement blocks are Motion, speech and costumes are Looks, playing sounds is Sound, and loops are Control.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
4The score is 7. Which condition is true?1 mark

Tick one box.

Mark scheme0 / 1
  • LB score < 10
Model answer

7 is less than 10. It is not greater than 7, not equal to 8 and not greater than 9.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
5score starts at 4. How many times does the loop run?1 mark
Scratch blocks
repeat until <(score) = 10>
    change [score] by 2
end

Mark scheme0 / 1
  • L3
Model answer

4 becomes 6, then 8, then 10. After the third pass the condition is true and the loop stops.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
6Trace the script. Complete the table to show the value of count after each pass of the loop.3 marks
Scratch blocks
set [count] to 1
repeat 3
    change [count] by (count)
end
After passcount
1
2
3

Mark scheme0 / 3
  • L2
  • L4
  • L8
Model answer

Adding count to itself doubles it each pass: 1 becomes 2, then 4, then 8.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
7Which block stops a sprite walking off the edge of the stage?1 mark

Tick one box.

Mark scheme0 / 1
  • LD if on edge, bounce
Model answer

if on edge, bounce turns the sprite round at the edge.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
8Explain why a variable is used to store the player's score, rather than typing the number into a say block.2 marks
Explain

Mark scheme0 / 2
  • LThe score changes during the game
  • LA variable holds the current value and can be updated by blocks, whereas a typed number stays fixed
Model answer

The score changes all through the game. A variable stores the current value and blocks can update it, whereas a number typed into a say block never changes.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
9A sprite should say Too high if a guess is bigger than 50, and Too low otherwise. Which block is needed?1 mark

Tick one box.

Mark scheme0 / 1
  • LA if then else
Model answer

if then else chooses between two actions.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
10Which two are good ways to find a bug in a Scratch project?2 marks

Tick two boxes.

Mark scheme0 / 2
  • LB Show the variable on the stage to watch its value change
  • LD Click one script at a time and watch what it does
  • LNo marks if more than 2 boxes are ticked
Model answer

Running small parts and watching variables shows where the program stops doing what you expect.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
11A sprite starts at y: -100 and runs this script. What is y at the end?1 mark
Scratch blocks
repeat 5
    change y by 30
end

Mark scheme0 / 1
  • L50
Model answer

-100 + 5 x 30 = -100 + 150 = 50.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
12An enemy sprite must move towards the player for the whole game. Describe the blocks needed, in order.3 marks
Describe

Mark scheme0 / 3
  • LAn event block such as when green flag clicked starts the script
  • LA forever loop so it keeps happening for the whole game
  • LInside the loop, point towards the player and move a few steps (or glide to the player)
Model answer

Start with when green flag clicked. Under it put a forever loop, and inside the loop put point towards Player and move 3 steps, so every pass turns the enemy to face the player and moves it a little closer.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
13How many degrees must a sprite turn after each side to draw a regular hexagon?1 mark

Mark scheme0 / 1
  • L60
Model answer

A hexagon has six sides, so each turn is 360 / 6 = 60 degrees.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
14Tick one box in each row.3 marks
TrueFalse
A forever loop stops on its own after a while
A Scratch variable can hold words as well as numbers
Blocks inside repeat 3 run three times

Tick one box in each row.

Mark scheme0 / 3
  • LA forever loop stops on its own after a while: False
  • LA Scratch variable can hold words as well as numbers: True
  • LBlocks inside repeat 3 run three times: True
Model answer

A forever loop never stops by itself. Variables can hold text or numbers. A repeat 3 loop runs its blocks three times.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
Machine mark 0 / 25
About this paper

This is an original Key Stage 3 assessment. Most questions are closed, so the marking is exact, and the written answers are marked against a mark scheme in the same style as a GCSE paper, so the format is familiar long before it counts.