← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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