Lite / Discovering How the World Works / Term 3 worksheet
Worksheet: Discovering How the World Works, term 3
Name: Date:
Week 19: Automatic or intelligent?
1. Which of these machines is intelligent rather than just automatic?
- A clock that chimes every hour
- A garden sprinkler that runs from 6:00 to 6:20 every morning
- A sprinkler that waters only when a soil sensor reads dry
- A conveyor belt that always runs at the same speed
2. A machine has an excellent camera but no rules. Is it intelligent?
- Yes, because it can see
- No, sensing alone doesn't choose an action
- Yes, if the camera is expensive enough
3. A night light switches on when the room gets dark. What does it sense, and what does it do?
- Senses time, acts by ringing
- Senses light level, acts by switching a lamp
- Senses sound, acts by switching a lamp
4. Put these lights in order from least to most intelligent: (A) on at 7 pm daily, (B) on when it gets dark, (C) on when it's dark AND someone is in the room.
- A, B, C
- C, B, A
- B, A, C
Week 19: Sense, think, act
1. A robot counts how many times its wheel has turned. Which stage is that?
- Sense
- Think
- Act
2. 'If the soil is drier than 30%, open the water valve.' Which stage is this sentence?
- Sense
- Think
- Act
3. Why must the sense–think–act loop keep repeating?
- To use up the battery evenly
- Because acting changes the world, so there is always something new to measure
- Because sensors only work once
4. A robot runs its sense–think–act loop 50 times every second. How many times does it run the loop in 3 seconds?
Answer:
Week 19: Who decides: the robot or the human?
1. A rover's camera sees the ground drop away in front of it. Who should decide to stop?
- Mission control on Earth
- The rover, by itself
- Whoever is awake
2. Which decision is fine to leave to scientists on Earth?
- Braking before a rock
- Which crater to explore next week
- Steadying the wheels on a slope
3. A radio message takes 12 minutes to travel from Mars to Earth. What is the shortest time, in minutes, to send a photo to Earth and get a reply back?
Answer: min
4. A slow rover moves 5 cm every second. How many centimetres would it travel during a 60-second wait?
Answer: cm
Week 20: What is an algorithm?
1. Which of these is NOT a good algorithm for a robot?
- Forward 3, Turn right, Forward 2
- Move a bit, then go round the obstacle
- Repeat 4 times: Forward 1, Turn left
2. 'Step 1: Forward 1. Step 2: go back to step 1.' What is wrong with this as an algorithm?
- Nothing
- It never finishes
- It is not ordered
3. Two learners write different programs that both take the robot to the flag safely. Which is true?
- One must be wrong
- Both can be correct algorithms
- Only the first one written counts
4. A robot starts at (0, 0) facing north on an open grid (east is +x, north is +y). It runs: turn left, turn left, turn right, forward 1, turn left, forward 1. What is its final x (east–west) coordinate? Use a negative number for west.
Answer:
Week 20: Drawing algorithms as flowcharts
1. Which flowchart shape asks a yes/no question?
- Rectangle
- Diamond
- Rounded box
2. A flowchart diamond asks 'Door open?' and has only a Yes arrow. What's the problem?
- None, the No case doesn't matter
- The machine won't know what to do when the door is closed
- Diamonds should have three arrows
3. Flowchart: Start → 'Temperature below 18 °C?' Yes → 'Heater on'; No → 'Heater off' → back to Start. The thermometer reads 20 °C. What happens?
- Heater on
- Heater off
- Nothing
4. A flowchart has a start, an end, three action rectangles and two decision diamonds. How many arrows leave the decision diamonds altogether?
Answer:
Week 20: Some algorithms are better than others
1. How many counts does it take to count 36 people in groups of 3?
Answer:
2. You count 25 people in pairs. How many counts do you need, including the last person on their own?
Answer:
3. Algorithm X takes 5 steps and is wrong for one input in ten. Algorithm Y takes 50 steps and is always right. For a lift's safety check, which should you choose?
- X, because it's faster
- Y, because it's always correct
- Either, it doesn't matter
4. A robot's counter starts at x = 2. The loop is: repeat until x ≥ 24: x = x + 4. How many times does the loop body run?
Answer:
Week 21: Order matters
1. Which pair of steps can safely be done in either order?
- Close the lift doors / start the motor
- Brush your left teeth / brush your right teeth
- Drain the water / unlock the washing-machine door
2. A robot at (0, 0) faces north. It runs: Turn right, Forward 1, Forward 1. Where does it end?
- (0, 2)
- (2, 0)
- (1, 1)
3. What must happen before a washing machine's door is allowed to unlock?
- The drum must be spinning
- The water must have drained and the drum stopped
- The detergent must be added
4. A robot starts at (0, 0) facing north on an open grid (east is +x, north is +y). It runs: turn left, turn left, turn right, forward 1, turn left, forward 1. What is its final x (east–west) coordinate? Use a negative number for west.
Answer:
Week 21: Instructions a robot can't misunderstand
1. Which instruction is exact enough for a robot?
- Drive forward a bit
- Drive forward 50 cm
- Drive forward until it feels right
2. A robot at (3, 2) facing east does 'Turn left'. Where is it now, and which way does it face?
- (3, 2), facing north
- (3, 3), facing north
- (2, 2), facing west
3. A robot starts at (0, 0) facing north on an open grid (east is +x, north is +y). It runs: forward 1, forward 1, forward 1, forward 1, forward 1, forward 1. What is its final y (north–south) coordinate? Use a negative number for south.
Answer:
4. A robot faces north (0°). Compass angles go clockwise: east 90°, south 180°, west 270°. It makes these 90° turns: right, right, right, left, right. Which compass angle does it face at the end (0 to 270)?
Answer:
Week 21: Debugging: find the step that went wrong
1. A robot crashes into a wall on instruction 6. Which statement is true?
- The bug must be in instruction 6
- The bug is at instruction 6 or earlier
- The bug is after instruction 6
2. You fix instruction 3 of a 10-step program. What should you do next?
- Run just instruction 3 again
- Run the whole program from the start
- Nothing, it's fixed
3. A robot faces north (0°). Compass angles go clockwise: east 90°, south 180°, west 270°. It makes these 90° turns: right, right, right, left. Which compass angle does it face at the end (0 to 270)?
Answer:
4. A robot starts at (0, 0) facing north on an open grid (east is +x, north is +y). It runs: turn left, turn left, turn right, forward 1, turn left, forward 1. What is its final x (east–west) coordinate? Use a negative number for west.
Answer:
Week 22: IF this, THEN that, ELSE the other
1. IF light level < 30 THEN lamp on ELSE lamp off. The sensor reads 45. What happens?
- Lamp on
- Lamp off
- Both
2. IF speed > 50 THEN beep. The speed is exactly 50. Does it beep?
- Yes
- No
3. A night light's only rule is: IF dark THEN lamp on. What goes wrong?
- The lamp never turns on
- Once on, the lamp never turns off
- Nothing
4. Rule: IF distance < 30 cm THEN stop. The sensor reads 38 cm, 44 cm, 29 cm, 30 cm, 31 cm, 15 cm. For how many of these readings does the THEN branch run?
Answer:
Week 22: Choosing a good threshold
1. Rule: IF temperature > 40 °C THEN switch the fan on. The sensor reads 41 °C, 55 °C, 40 °C, 33 °C, 43 °C, 47 °C. For how many of these readings does the THEN branch run?
Answer:
2. A doorbell camera alerts you when motion is above a threshold. Leaves blowing keep triggering it. What should you do?
- Lower the threshold
- Raise the threshold
- Remove the threshold
3. For a smoke alarm, which mistake is worse?
- A false alarm from toast
- Missing a real fire
4. Small parts measure between 40 and 55 mm. Large parts measure between 75 and 90 mm. A good threshold sits halfway across the gap between the groups. What value is that, in mm?
Answer: mm
Week 22: AND, OR, NOT: combining conditions
1. A burglar alarm should sound if the door opens or a window breaks. Which word joins the two conditions?
- AND
- OR
- NOT
2. A paper shredder should run only when the bin is in place and paper is detected. Which rule is right?
- Run IF bin in place OR paper detected
- Run IF bin in place AND paper detected
- Run IF NOT paper detected
3. In the four-row truth table for A OR B, in how many rows is the result true?
Answer:
4. A rover's rule is 'drive IF NOT obstacle'. The obstacle sensor says true. Does it drive?
- Yes
- No
Week 23: Repeat N times
1. x starts at 8. A loop runs "x = x + 2" exactly 6 times. What is x when the loop ends?
Answer:
2. x starts at 2. A loop runs "x = x + -1" exactly 4 times. What is x when the loop ends?
Answer:
3. Without a loop, how many instructions does it take to drive a square with 'Forward 1, Turn right' for each side?
Answer:
4. x starts at 7. A loop says 'repeat 0 times: x = x + 5'. What is x afterwards?
- 7
- 12
- 0
Week 23: Repeat until: loops that decide when to stop
1. A robot's counter starts at x = 4. The loop is: repeat until x ≥ 21: x = x + 2. How many times does the loop body run?
Answer:
2. A robot's counter starts at x = 1. The loop is: repeat until x ≥ 12: x = x + 5. How many times does the loop body run?
Answer:
3. Repeat until distance < 10: beep. The robot isn't moving. What happens?
- It beeps once
- It beeps for ever, unless something else moves
- It stops at once
4. x starts at 25. Repeat until x ≥ 20: x = x + 2. How many times does the body run?
- 0
- 1
- It never stops
Week 23: The forever loop inside every robot
1. When is a loop that never ends the right design?
- Never: it's always a bug
- When the machine must keep watching and reacting for as long as it's on
- Only on very fast computers
2. Where should the IF rule 'IF too hot THEN fan on' go in a thermostat program?
- Before the forever loop, run once
- Inside the forever loop
- After the forever loop
3. A traffic light's cycle is green 30 s, amber 3 s, red 37 s, then repeats. How many full cycles does it complete in 7 minutes (420 s)?
Answer:
4. A robot's main loop runs every 20 milliseconds (0.02 s). How many passes does it make in one second?
Answer:
Week 24: Sensors: how machines feel the world
1. A greenhouse needs to know when the soil is dry. Which sensor fits?
- Light sensor
- Soil moisture sensor
- Wheel encoder
2. Which sensor gives only two possible answers?
- A bump switch
- A thermometer
- An ultrasonic distance sensor
3. Is a speaker a sensor or an actuator?
- Sensor
- Actuator
4. Sound travels 340 m/s. An echo comes back after 0.01 s. How far away is the object, in metres? (Remember: there and back.)
Answer: m
Week 24: Sensors aren't perfect
1. A thermometer reads 18, 19, 17 and 18 °C. What is the average, in °C?
Answer: °C
2. A robot drives at 10 cm/s and checks its distance sensor 10 times a second. How far does it travel between one check and the next, in cm?
Answer: cm
3. A robot must never get closer than 10 cm to a wall. Its sensor can be off by up to 2 cm. Which stop rule is safest?
- Stop IF distance < 10 cm
- Stop IF distance < 12 cm
- Stop IF distance < 8 cm
4. Averaging 20 readings instead of 2 makes the estimate steadier. What's the cost?
- None
- The robot reacts more slowly to real changes
- The sensor wears out
Week 24: Actuators: how machines change the world
1. Which actuator is best for pointing a camera at a chosen angle and holding it there?
- DC motor
- Servo
- Buzzer
2. Which addition best helps a gripper hold both an egg and a bolt?
- A bigger motor
- A touch sensor in the finger pad
- Longer fingers
3. A robot arm has a shoulder, an elbow and a wrist, each turned by its own motor. How many degrees of freedom does it have?
Answer:
4. In a greenhouse, which of these is an actuator?
- Thermometer
- Heater
- Setpoint of 18 °C
Week 25: Open loop or closed loop?
1. Which of these is closed-loop?
- A washing machine that always fills for 90 seconds
- A washing machine that fills until a level sensor says full
- A fan that runs for 10 minutes
2. A heater wants the room at 21 °C. The thermometer reads 17.5 °C. What is the gap (target − measured), in °C?
Answer: °C
3. A robot's target is 80 cm. It measures 86 cm. What is the gap, in cm? (It can be negative.)
Answer: cm
4. A closed-loop robot is pushed back 10 cm by a friend. What happens?
- It doesn't notice
- The gap grows, so it drives forward again
- It stops working
Week 25: On/off control: the bang-bang thermostat
1. Why does a bang-bang thermostat never hold the temperature exactly on target?
- The thermometer is broken
- The heater can only be fully on or fully off, so it overshoots and undershoots
- The target is set wrong
2. A thermostat targets 22 °C with a 3 °C gap split evenly. Below what temperature does the heater switch on, in °C?
Answer: °C
3. An engineer shrinks the gap from 2 °C to 0.2 °C. What happens?
- Smaller swings, more switching
- Bigger swings, less switching
- Smaller swings, less switching
4. Gap set: on below 17 °C, off above 19 °C. The heater is ON and the room reaches 18 °C. What does it do?
- Switches off
- Stays on
- Switches on
Week 25: Correct in proportion
1. A robot is at 0 cm and wants to stop at 80 cm. Each step it moves 0.5 of the remaining gap. Where is it after one step, in cm?
Answer: cm
2. A robot is at 20 cm and wants to stop at 40 cm. Each step it moves 0.25 of the remaining gap. Where is it after one step, in cm?
Answer: cm
3. Which value of k makes the robot overshoot the target and then settle?
- 0.3
- 1.5
- 2.5
4. A proportional heater targets 18 °C but the room settles at 16.6 °C. Why?
- The heater is broken
- Near the target the gap is small, so the heat is small: it only balances the losses below target
- The thermometer reads 1.4 °C too low
5. A robot at 0 cm targets 80 cm with k = 0.5. Where is it after three steps, in cm?
Answer: cm
Week 26: Steering without a steering wheel
1. Left wheel 10 cm/s, right wheel 6 cm/s. What is the robot's forward speed, in cm/s?
Answer: cm/s
2. Left wheel 3 cm/s, right wheel 7 cm/s. Which way does the robot curve?
- Left
- Right
- Straight
3. Which wheel speeds make the robot spin on the spot to the left?
- Left +5, right +5
- Left −5, right +5
- Left +5, right −5
4. A robot faces north (0°). Compass angles go clockwise: east 90°, south 180°, west 270°. It makes these 90° turns: right, right, right, left, right. Which compass angle does it face at the end (0 to 270)?
Answer:
Week 26: Joints and arms: placing a robot hand
1. A robot arm has an upper arm 9 cm long and a forearm 2 cm long. What is the closest distance from the shoulder that the hand can reach, in cm?
Answer: cm
2. Our arm has links of 5 and 3 units. Which point can its hand NOT reach?
- A point 4 units from the shoulder
- A point 7 units from the shoulder
- A point 9 units from the shoulder
3. A robot arm has a waist that rotates, a shoulder, an elbow and a wrist that bends, each with its own motor. How many degrees of freedom is that?
Answer:
4. Why can a two-joint arm often reach the same point in two ways?
- Because it has a spare motor
- The elbow can bend either way (elbow up or elbow down)
- It can't: there's only ever one way
Week 26: Planning a route before you move
1. A robot starts at (0, 0) facing north on an open grid (east is +x, north is +y). It runs: forward 1, forward 1, turn right, turn right, forward 1, turn left, turn left. What is its final x (east–west) coordinate? Use a negative number for west.
Answer:
2. On an open grid with no walls, what's the fewest Forward moves to get from (0, 0) to (3, 5)?
Answer:
3. Why do rovers stop at checkpoints along a planned route?
- To rest their motors
- To measure where they really are and correct any drift
- Because the plan says so for no reason
4. Route A is 10 moves and passes right beside a crater. Route B is 12 moves and stays well clear. Which would a careful engineer pick?
- A, it's shorter
- B, it's safer
- Neither
Week 27: Design challenge 1: define the problem
1. Which requirement is testable?
- The robot should be fast
- The robot must reach the door in under 30 seconds
- The robot should feel friendly
2. Why include something the system must NEVER do?
- It makes the list longer
- Safety and sense: it rules out dangerous or silly behaviour
- Engineers like negative sentences
3. Checking a sensor 100 times a second instead of once a second makes a robot react faster. What's the likely trade-off?
- None
- It uses more battery and computing power
- It makes the sensor less accurate
Week 27: Design challenge 2: design the brain
1. A smart greenhouse has four yes/no sensors (too hot?, too cold?, soil dry?, daytime?). How many rows does its complete rule table need?
Answer:
2. Using the chain IF metal THEN Metal ELSE IF large THEN Reject ELSE IF red THEN Red ELSE Mixed, where does a small, red, metal part go?
- Red
- Metal
- Reject
3. A rule table for two sensors has only three rows filled in. What's the risk?
- None
- In the missing situation, the machine has no instruction
- It will run faster
4. In your design, where do the sensor readings and rules go?
- Before the forever loop
- Inside the forever loop
- After the forever loop
Week 27: Design challenge 3: test it and make it better
1. Rule: IF temperature > 40 °C THEN switch the fan on. The sensor reads 41 °C, 55 °C, 40 °C, 33 °C, 43 °C, 47 °C. For how many of these readings does the THEN branch run?
Answer:
2. Why write the expected result before running a test?
- It saves paper
- So you can't convince yourself afterwards that whatever happened was right
- Because tests run faster
3. You change your rule from < to ≤ to fix one failed test. What should you do next?
- Run only the test that failed
- Run all the tests again
- Nothing
4. Good practice tests each threshold at just below, exactly on, and just above it. A design has 3 thresholds. How many boundary tests is that?
Answer: