How does an ultrasonic rangefinder measure distance?
- A.It uses a camera to estimate size
- B.It sends a sound pulse and times how long the echo takes to return
- C.It counts wheel rotations
- D.It reads a GPS signal
Answer Why?
Why use a threshold instead of checking for an exact distance?
- A.Exact distances are illegal
- B.Sensor readings vary slightly (noise), so a cutoff is more reliable than an exact match
- C.To make the robot slower
- D.Thresholds use less memory
Answer Why?
The robot is at (2,1) facing NORTH and the rangefinder reads 8 cm (threshold 15). Which node is blocked?
- A.(2,1) — where the robot is
- B.(1,1) — the node directly ahead (north is row − 1)
- C.(3,1)
- D.(2,2)
Answer Why?
When the robot detects a new obstacle, what does it do to reroute?
- A.Stops permanently
- B.Creates a fresh Dijkstra with the updated blocked list and current position, then recomputes the path
- C.Reverses back to the start
- D.Ignores it and drives through
Answer Why?
Why test with a simulated rangefinder before using the real one?
- A.The real sensor never works
- B.To verify the detect-update-recompute logic in software first, separating code bugs from hardware bugs
- C.Simulation is required by Python
- D.To avoid writing the loop
Answer Why?