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

Programming Essentials in Scratch: Unit Exam A

Algorithms, sequence, selection and iteration in Scratch, variables, events, broadcasts and debugging.

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 is an algorithm?1 mark

Tick one box.

Mark scheme0 / 1
  • LB A set of step by step instructions to solve a problem
Model answer

An algorithm is a precise sequence of steps that solves a problem.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
2Tick one box in each row to show which programming construct each describes.4 marks
SequenceSelectionIteration
if touching edge then
repeat 10
Blocks joined one after another and run in order
if score = 5 then ... else

Tick one box in each row.

Mark scheme0 / 4
  • Lif touching edge then: Selection
  • Lrepeat 10: Iteration
  • LBlocks joined one after another and run in order: Sequence
  • Lif score = 5 then ... else: Selection
Model answer

if blocks are selection, repeat and forever are iteration, and blocks in order are sequence.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
3What number does the sprite say at the end of this script?1 mark
Scratch blocks
when green flag clicked
set [score] to 0
repeat 5
    change [score] by 2
end
say (score)

Mark scheme0 / 1
  • L10
Model answer

The loop runs five times, adding 2 each time: 0 + 2 + 2 + 2 + 2 + 2 = 10.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
4A sprite starts at x: 0 and runs this script. What is its x position at the end?1 mark
Scratch blocks
repeat 4
    change x by 25
end

Mark scheme0 / 1
  • L100
Model answer

Four moves of 25 is 100.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
5Which block makes a script start when the program is run?1 mark

Tick one box.

Mark scheme0 / 1
  • LD when green flag clicked
Model answer

when green flag clicked is the event that starts scripts when the green flag is pressed.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
6What is a variable?1 mark

Tick one box.

Mark scheme0 / 1
  • LC A named store for a value that can change while the program runs
Model answer

A variable is a named store, such as score, whose value can change.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
7A sprite must keep checking whether it is touching an enemy for the whole game. Which block should the if block go inside?1 mark

Tick one box.

Mark scheme0 / 1
  • LA forever
Model answer

forever keeps checking for as long as the game runs. repeat 10 would only check ten times.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
8A sprite with the pen down runs this script. Name the shape it draws.1 mark
Scratch blocks
pen down
repeat 3
    move 100 steps
    turn 120 degrees
end

Mark scheme0 / 1
  • Ltriangle
Model answer

Three equal sides with a 120 degree turn at each corner make an equilateral triangle.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
9To draw a square, how many degrees must the sprite turn at each corner?1 mark

Mark scheme0 / 1
  • L90
Model answer

A square has four corners and the turns must add up to 360, so 360 / 4 = 90 degrees.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
10Explain what a broadcast message is used for in Scratch.2 marks
Explain

Mark scheme0 / 2
  • LIt sends a message to other sprites or the stage
  • LScripts that start with when I receive that message then run, so one sprite can make others act
Model answer

A broadcast sends a message to every sprite and the stage. Any script that begins with when I receive that message starts running, so one sprite can make other sprites act, for example starting the next level.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
11Which of these is an example of debugging?1 mark

Tick one box.

Mark scheme0 / 1
  • LA Finding and fixing a mistake that makes a sprite move the wrong way
Model answer

Debugging means finding and fixing errors in a program.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
12Complete the table to show what the sprite says for each value of score.3 marks
Scratch blocks
if <(score) > 10> then
    say [Great]
else
    say [Keep going]
end
scoreThe sprite says
5
10
11

Mark scheme0 / 3
  • LKeep going
  • LKeep going
  • LGreat
Model answer

Only a score greater than 10 says Great. 10 is not greater than 10, so it says Keep going.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
13A game should add 1 to the score each time the cat catches a mouse, but the score always shows 0. Suggest two possible causes of this bug.2 marks
Suggest

Mark scheme0 / 2
  • LThe score is set back to 0 inside the loop, every time round
  • LThe change score block is not run: the condition is never true, it is in the wrong place, or it changes by 0 or the wrong variable
Model answer

The score might be set to 0 inside the forever loop, so it is reset every time round. Or the change score by 1 block never runs, because the if condition is never true, the block is not joined to the script, or it changes a different variable.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
14Which two are event blocks in Scratch?2 marks

Tick two boxes.

Mark scheme0 / 2
  • LC when this sprite clicked
  • LD when space key pressed
  • LNo marks if more than 2 boxes are ticked
Model answer

Event blocks start scripts when something happens, such as a click or a key press.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
15What does iteration mean?1 mark

Tick one box.

Mark scheme0 / 1
  • LB Repeating a set of instructions
Model answer

Iteration is repetition: a loop.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
16How many times does the pop sound play?1 mark
Scratch blocks
repeat 3
    repeat 4
        play sound [pop]
    end
end

Mark scheme0 / 1
  • L12
Model answer

The inner loop plays the sound 4 times, and it runs 3 times: 3 x 4 = 12.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
17What does the block wait 1 seconds do?1 mark

Tick one box.

Mark scheme0 / 1
  • LA Pauses the script for one second
Model answer

It pauses that script for one second before the next block runs.

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.