← The state of a robot lesson New set →

Robotics Worksheet: Robot State

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

Answer key

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

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