← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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