← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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