← The state of a robot lesson New set →

Robotics Worksheet: Robot State

Robotics lesson 25: The state of a robot · Set 13 · 40 questions
TalentJR

Robot tip (Trace and write): Set (=) replaces the value; + adds; − takes away. Write the value after every line; the last change is the answer. In a loop, multiply: repeat 10 { 3% } uses 30%.

NameDateTime takenScore ___ / 40
  1. 1.📋 A robot program runs:
    speed = 40
    speed = speed + 5
    speed = speed − 10
    speed = 60
    What is the speed at the end?
  2. 2.📋 A warehouse robot starts with an empty tray and runs:
    pick up 1 box
    pick up 4 boxes
    pick up 2 boxes
    pick up 2 boxes
    How many boxes are on its tray at the end?
  3. 3.📋 What does “speed = speed + 10” do? (a) takes 10 away (b) adds 10 to the speed (c) stops the robot (d) sets speed to 10
  4. 4.📋 A warehouse robot starts with an empty tray and runs:
    pick up 3 boxes
    put down 2 boxes
    pick up 2 boxes
    pick up 4 boxes
    How many boxes are on its tray at the end?
  5. 5.📋 A robot program runs:
    speed = 30
    speed = speed − 5
    speed = 40
    speed = speed − 5
    speed = speed − 15
    What is the speed at the end?
  6. 6.📋 A warehouse robot starts with an empty tray and runs:
    pick up 3 boxes
    pick up 4 boxes
    put down 4 boxes
    pick up 2 boxes
    pick up 3 boxes
    How many boxes are on its tray at the end?
  7. 7.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 4% and each turn uses 2%. It runs:
    repeat 8 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  8. 8.📋 A warehouse robot starts with an empty tray and runs:
    pick up 4 boxes
    pick up 2 boxes
    put down 3 boxes
    How many boxes are on its tray at the end?
  9. 9.📋 A warehouse robot starts with an empty tray and runs:
    pick up 4 boxes
    put down 4 boxes
    pick up 1 box
    pick up 4 boxes
    How many boxes are on its tray at the end?
  10. 10.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 2% and each turn uses 1%. It runs:
    repeat 8 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  11. 11.📋 A robot starts on the start line of a straight track and runs:
    forward 45 cm
    back 25 cm
    forward 20 cm
    forward 30 cm
    How many cm in front of the start line is it now?
  12. 12.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 1% and each turn uses 1%. It runs:
    repeat 7 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  13. 13.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 2% and each turn uses 2%. It runs:
    repeat 5 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  14. 14.📋 The “state” of a robot means … (a) its box size (b) its paint colour (c) its values right now (d) its price
  15. 15.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 3% and each turn uses 2%. It runs:
    repeat 9 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  16. 16.📋 A robot starts on the start line of a straight track and runs:
    forward 15 cm
    forward 40 cm
    forward 35 cm
    How many cm in front of the start line is it now?
  17. 17.📋 A robot starts on the start line of a straight track and runs:
    forward 5 cm
    forward 30 cm
    forward 10 cm
    How many cm in front of the start line is it now?
  18. 18.📋 A program says “speed = 30” and then “speed = 50”. What is the speed? (a) 80 (b) 30 (c) 50 (d) 20
  19. 19.📋 A robot program runs:
    speed = 50
    speed = speed − 15
    speed = speed + 20
    What is the speed at the end?
  20. 20.📋 A robot program runs:
    speed = 30
    speed = 50
    speed = 40
    speed = speed + 5
    What is the speed at the end?
  21. 21.📋 A robot starts on the start line of a straight track and runs:
    forward 35 cm
    back 5 cm
    forward 45 cm
    forward 20 cm
    back 10 cm
    How many cm in front of the start line is it now?
  22. 22.📋 A robot starts on the start line of a straight track and runs:
    forward 30 cm
    forward 20 cm
    forward 25 cm
    How many cm in front of the start line is it now?
  23. 23.📋 A warehouse robot starts with an empty tray and runs:
    pick up 1 box
    pick up 1 box
    pick up 3 boxes
    pick up 1 box
    pick up 1 box
    How many boxes are on its tray at the end?
  24. 24.📋 A robot starts on the start line of a straight track and runs:
    forward 40 cm
    forward 5 cm
    forward 10 cm
    How many cm in front of the start line is it now?
  25. 25.📋 A robot program runs:
    speed = 40
    speed = speed + 15
    speed = speed + 20
    What is the speed at the end?
  26. 26.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 1% and each turn uses 2%. It runs:
    repeat 9 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  27. 27.📋 A warehouse robot starts with an empty tray and runs:
    pick up 4 boxes
    pick up 4 boxes
    put down 4 boxes
    put down 4 boxes
    How many boxes are on its tray at the end?
  28. 28.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 3% and each turn uses 2%. It runs:
    repeat 7 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  29. 29.📋 A robot program runs:
    speed = 40
    speed = speed + 10
    speed = speed − 5
    What is the speed at the end?
  30. 30.📋 A robot program runs:
    speed = 20
    speed = speed + 10
    speed = speed − 15
    speed = speed − 5
    speed = speed − 5
    What is the speed at the end?
  31. 31.📋 A robot starts on the start line of a straight track and runs:
    forward 5 cm
    forward 25 cm
    back 10 cm
    back 10 cm
    forward 15 cm
    How many cm in front of the start line is it now?
  32. 32.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 3% and each turn uses 1%. It runs:
    repeat 2 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  33. 33.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 1% and each turn uses 1%. It runs:
    repeat 9 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  34. 34.📋 A robot starts on the start line of a straight track and runs:
    forward 10 cm
    forward 30 cm
    forward 30 cm
    How many cm in front of the start line is it now?
  35. 35.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 1% and each turn uses 2%. It runs:
    repeat 2 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  36. 36.📋 A robot program runs:
    speed = 30
    speed = 60
    speed = speed − 15
    speed = speed + 15
    What is the speed at the end?
  37. 37.📋 A robot’s battery is at 100%. Each “forward 10 cm” uses 2% and each turn uses 2%. It runs:
    repeat 8 { forward 10 cm; turn right 90° }
    What is the battery level at the end (in %)?
  38. 38.📋 A warehouse robot starts with an empty tray and runs:
    pick up 3 boxes
    put down 3 boxes
    pick up 1 box
    pick up 1 box
    pick up 3 boxes
    How many boxes are on its tray at the end?
  39. 39.📋 A robot program runs:
    speed = 30
    speed = 30
    speed = speed − 15
    speed = 20
    speed = 60
    What is the speed at the end?
  40. 40.📋 A robot starts on the start line of a straight track and runs:
    forward 35 cm
    forward 5 cm
    forward 30 cm
    How many cm in front of the start line is it now?

Answer key

  1. 60
  2. 9
  3. adds 10 to the speed
  4. 7
  5. 20
  6. 8
  7. 52
  8. 3
  9. 5
  10. 76
  11. 70
  12. 86
  13. 80
  14. its values right now
  15. 55
  16. 90
  17. 45
  18. 50
  19. 55
  20. 45
  21. 85
  22. 75
  23. 7
  24. 55
  25. 75
  26. 73
  27. 0
  28. 65
  29. 45
  30. 5
  31. 25
  32. 92
  33. 82
  34. 70
  35. 94
  36. 60
  37. 68
  38. 5
  39. 60
  40. 70

Free robotics lessons, practice and worksheets at talentjr.in/robotics-for-kids