← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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