Class 5 Computer Worksheet: Block Coding
Remember (Times × amount): Event = when something happens; motion = move or turn; sound = play a sound; if = check a condition. A loop repeats the blocks inside it: total = times × amount. repeat N times [move, turn 360 ÷ N degrees] draws a shape with N sides.
NameDateTime takenScore ___ / 40
- 1.Which of these is an if block? (a) glide to the edge (b) if the key is down (c) repeat forever (d) set volume to 50%
- 2.🧱 What kind of block is “repeat forever”? (a) a sound block (b) an event block (c) an if block (d) a loop block
- 3.🧱 In block coding, we join blocks like ___. (a) jigsaw puzzle pieces (b) wet clay (c) sand (d) ice cubes
- 4.🔍 Which is the odd one out? (a) when the program starts (b) when a key is pressed (c) when sprite is clicked (d) repeat 4 times
- 5.🧱 A sprite runs: repeat 2 times [ repeat 2 times [ play a drum beat ] ]. How many drum beats are played?
- 6.🔍 Which is the odd one out? (a) repeat 4 times (b) turn right 90 degrees (c) repeat until done (d) repeat forever
- 7.Which of these is a loop block? (a) play a drum beat (b) turn right 90 degrees (c) when the program starts (d) repeat forever
- 8.🧱 A sprite runs: repeat 7 times [ move 30 steps ]. How many steps does it move in all?
- 9.Which of these is an if block? (a) if touching the wall (b) glide to the edge (c) repeat until done (d) play a drum beat
- 10.Which of these is an if block? (a) when sprite is clicked (b) repeat until done (c) repeat 4 times (d) if score is 10
- 11.Which of these is an event block? (a) repeat 4 times (b) when sprite is clicked (c) if the key is down (d) repeat forever
- 12.🧱 A sprite runs: repeat 3 times [ repeat 4 times [ play a drum beat ] ]. How many drum beats are played?
- 13.🧱 A sprite draws a shape: repeat 9 times [ move 50 steps, turn 40 degrees ]. How many sides does the shape have?
- 14.🐱 What do we call a character that moves on the stage in block coding? (a) a pixel (b) a sprite (c) a cursor (d) a folder
- 15.🧱 What kind of block is “turn right 90 degrees”? (a) a sound block (b) an event block (c) an if block (d) a motion block
- 16.🧱 What kind of block is “if touching the wall”? (a) a sound block (b) an event block (c) a loop block (d) an if block
- 17.🔍 Which is the odd one out? (a) if the key is down (b) if score is 10 (c) if touching the wall (d) when a key is pressed
- 18.🔍 Which is the odd one out? (a) repeat 4 times (b) repeat forever (c) repeat until done (d) play a beep
- 19.🧱 A sprite runs: repeat 3 times [ move 40 steps ]. How many steps does it move in all?
- 20.🧱 A sprite draws a shape: repeat 4 times [ move 50 steps, turn 90 degrees ]. How many sides does the shape have?
- 21.🔍 Which is the odd one out? (a) repeat 4 times (b) repeat forever (c) repeat until done (d) play a drum beat
- 22.Which of these is a sound block? (a) when sprite is clicked (b) play a beep (c) when the program starts (d) repeat until done
- 23.🧱 What kind of block is “when a key is pressed”? (a) a loop block (b) an if block (c) a motion block (d) an event block
- 24.🧱 A sprite runs: repeat 5 times [ repeat 5 times [ play a drum beat ] ]. How many drum beats are played?
- 25.Which of these is a motion block? (a) if touching the wall (b) repeat forever (c) glide to the edge (d) repeat 4 times
- 26.🧱 A sprite runs: repeat 3 times [ move 15 steps ]. How many steps does it move in all?
- 27.🔁 Which block repeats steps again and again? (a) a motion block (b) an event block (c) a loop block (d) a sound block
- 28.Which of these is a loop block? (a) turn right 90 degrees (b) repeat 4 times (c) play a beep (d) when a key is pressed
- 29.🔍 Which is the odd one out? (a) when the program starts (b) repeat until done (c) repeat forever (d) repeat 4 times
- 30.🧱 What kind of block is “if score is 10”? (a) an event block (b) a motion block (c) a sound block (d) an if block
- 31.🧱 What kind of block is “play a drum beat”? (a) an event block (b) an if block (c) a motion block (d) a sound block
- 32.🧱 What kind of block is “repeat until done”? (a) an if block (b) an event block (c) a motion block (d) a loop block
- 33.🔍 Which is the odd one out? (a) when the program starts (b) when sprite is clicked (c) repeat until done (d) when a key is pressed
- 34.🧱 A sprite runs: repeat 10 times [ move 15 steps ]. How many steps does it move in all?
- 35.🧱 A sprite runs: repeat 7 times [ move 35 steps ]. How many steps does it move in all?
- 36.Which of these is an event block? (a) set volume to 50% (b) play a drum beat (c) move 10 steps (d) when a key is pressed
- 37.🧱 A sprite runs: repeat 2 times [ move 5 steps ]. How many steps does it move in all?
- 38.🧱 What kind of block is “set volume to 50%”? (a) a motion block (b) a loop block (c) an if block (d) a sound block
- 39.🧱 What kind of block is “when the program starts”? (a) an event block (b) an if block (c) a motion block (d) a loop block
- 40.🧱 A sprite draws a shape: repeat 5 times [ move 50 steps, turn 72 degrees ]. How many sides does the shape have?
Answer key
- if the key is down
- a loop block
- jigsaw puzzle pieces
- repeat 4 times
- 4
- turn right 90 degrees
- repeat forever
- 210
- if touching the wall
- if score is 10
- when sprite is clicked
- 12
- 9
- a sprite
- a motion block
- an if block
- when a key is pressed
- play a beep
- 120
- 4
- play a drum beat
- play a beep
- an event block
- 25
- glide to the edge
- 45
- a loop block
- repeat 4 times
- when the program starts
- an if block
- a sound block
- a loop block
- repeat until done
- 150
- 245
- when a key is pressed
- 10
- a sound block
- an event block
- 5
Free computer lessons, practice and worksheets at talentjr.in/computer-worksheets