← Block coding basics lesson New set →

Class 5 Computer Worksheet: Block Coding

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

Answer key

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

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