← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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