← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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