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

Programming Essentials in Scratch: Unit Exam A

Instructions

Time allowed
25 minutes
Total marks
25
Calculator
No calculator is permitted.
  • Answer all the questions.

Questions

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

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.

Think this answer or mark scheme is wrong? Report it

Machine mark 0 / 25