← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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