← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

Computer lesson 27: Block coding basics · Set 335 · 40 questions
TalentJR

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. 1.Which of these is an event block? (a) when sprite is clicked (b) repeat 4 times (c) if the key is down (d) play a beep
  2. 2.🧱 In block coding, we join blocks like ___. (a) wet clay (b) sand (c) ice cubes (d) jigsaw puzzle pieces
  3. 3.Which of these is a loop block? (a) play a drum beat (b) when the program starts (c) repeat forever (d) move 10 steps
  4. 4.🧱 What kind of block is “play a beep”? (a) a motion block (b) an event block (c) a sound block (d) a loop block
  5. 5.🔁 Which block repeats steps again and again? (a) a loop block (b) a motion block (c) a sound block (d) an event block
  6. 6.🧱 A sprite runs: repeat 5 times [ repeat 3 times [ play a drum beat ] ]. How many drum beats are played?
  7. 7.🧱 A sprite runs: repeat 6 times [ move 30 steps ]. How many steps does it move in all?
  8. 8.🧱 A sprite runs: repeat 3 times [ repeat 3 times [ play a drum beat ] ]. How many drum beats are played?
  9. 9.🔍 Which is the odd one out? (a) if touching the wall (b) when a key is pressed (c) when the program starts (d) when sprite is clicked
  10. 10.🧱 What kind of block is “move 10 steps”? (a) an if block (b) a loop block (c) a motion block (d) an event block
  11. 11.🧱 What kind of block is “turn right 90 degrees”? (a) an event block (b) a motion block (c) a loop block (d) a sound block
  12. 12.🔍 Which is the odd one out? (a) repeat until done (b) set volume to 50% (c) repeat forever (d) repeat 4 times
  13. 13.Which of these is an event block? (a) if the key is down (b) when a key is pressed (c) set volume to 50% (d) repeat 4 times
  14. 14.🧱 A sprite runs: repeat 2 times [ move 15 steps ]. How many steps does it move in all?
  15. 15.🧱 What kind of block is “if touching the wall”? (a) an event block (b) an if block (c) a motion block (d) a loop block
  16. 16.🧱 What kind of block is “repeat 4 times”? (a) an event block (b) a loop block (c) a motion block (d) an if block
  17. 17.🧱 A sprite draws a shape: repeat 3 times [ move 50 steps, turn 120 degrees ]. How many sides does the shape have?
  18. 18.Which of these is a loop block? (a) when a key is pressed (b) repeat 4 times (c) play a drum beat (d) turn right 90 degrees
  19. 19.Which of these is a motion block? (a) set volume to 50% (b) if touching the wall (c) when the program starts (d) turn right 90 degrees
  20. 20.🔍 Which is the odd one out? (a) repeat until done (b) play a drum beat (c) repeat forever (d) repeat 4 times
  21. 21.🧱 A sprite draws a shape: repeat 5 times [ move 50 steps, turn 72 degrees ]. How many sides does the shape have?
  22. 22.🔍 Which is the odd one out? (a) when sprite is clicked (b) if the key is down (c) when the program starts (d) when a key is pressed
  23. 23.🧱 A sprite runs: repeat 3 times [ repeat 5 times [ play a drum beat ] ]. How many drum beats are played?
  24. 24.🐱 What do we call a character that moves on the stage in block coding? (a) a pixel (b) a folder (c) a sprite (d) a cursor
  25. 25.🧱 What kind of block is “repeat forever”? (a) a sound block (b) a motion block (c) an if block (d) a loop block
  26. 26.🧱 A sprite runs: repeat 2 times [ move 5 steps ]. How many steps does it move in all?
  27. 27.Which of these is an if block? (a) set volume to 50% (b) repeat forever (c) if the key is down (d) repeat 4 times
  28. 28.🧱 A sprite runs: repeat 8 times [ move 40 steps ]. How many steps does it move in all?
  29. 29.🔍 Which is the odd one out? (a) when a key is pressed (b) when the program starts (c) when sprite is clicked (d) if score is 10
  30. 30.Which of these is a motion block? (a) when the program starts (b) if score is 10 (c) repeat forever (d) move 10 steps
  31. 31.Which of these is a motion block? (a) glide to the edge (b) when sprite is clicked (c) repeat 4 times (d) when the program starts
  32. 32.🔍 Which is the odd one out? (a) play a drum beat (b) set volume to 50% (c) play a beep (d) when the program starts
  33. 33.🧱 A sprite runs: repeat 4 times [ move 10 steps ]. How many steps does it move in all?
  34. 34.🧱 A sprite runs: repeat 4 times [ repeat 4 times [ play a drum beat ] ]. How many drum beats are played?
  35. 35.🧱 A sprite runs: repeat 2 times [ move 45 steps ]. How many steps does it move in all?
  36. 36.Which of these is an if block? (a) turn right 90 degrees (b) if touching the wall (c) move 10 steps (d) repeat 4 times
  37. 37.🧱 A sprite draws a shape: repeat 6 times [ move 50 steps, turn 60 degrees ]. How many sides does the shape have?
  38. 38.🧱 A sprite runs: repeat 2 times [ repeat 3 times [ play a drum beat ] ]. How many drum beats are played?
  39. 39.🧱 A sprite runs: repeat 10 times [ move 15 steps ]. How many steps does it move in all?
  40. 40.🧱 A sprite runs: repeat 9 times [ move 30 steps ]. How many steps does it move in all?

Answer key

  1. when sprite is clicked
  2. jigsaw puzzle pieces
  3. repeat forever
  4. a sound block
  5. a loop block
  6. 15
  7. 180
  8. 9
  9. if touching the wall
  10. a motion block
  11. a motion block
  12. set volume to 50%
  13. when a key is pressed
  14. 30
  15. an if block
  16. a loop block
  17. 3
  18. repeat 4 times
  19. turn right 90 degrees
  20. play a drum beat
  21. 5
  22. if the key is down
  23. 15
  24. a sprite
  25. a loop block
  26. 10
  27. if the key is down
  28. 320
  29. if score is 10
  30. move 10 steps
  31. glide to the edge
  32. when the program starts
  33. 40
  34. 16
  35. 90
  36. if touching the wall
  37. 6
  38. 6
  39. 150
  40. 270

Free computer lessons, practice and worksheets at talentjr.in/computer-worksheets