Skip to main content
Module 3 · Grid Driving

Lesson 3-3 · Turning on the Grid — Knowledge Checks

Name Date
  1. Which sequence drives an L-shape — two segments, a right turn, then two more segments?

    1. A.turn_clockwise(); drive_intersections(2); drive_intersections(2)
    2. B.drive_intersections(2); turn_clockwise(); drive_intersections(2)
    3. C.drive_intersections(4)
    4. D.turn_clockwise(); turn_clockwise()

    Answer Why?

  2. After turn_clockwise(), what has to happen before the next drive_intersections()?

    1. A.A short drive forward to clear the cross
    2. B.Nothing — the turn ends with a sensor on the new line, and the next track_to_intersection() follows it from there
    3. C.A short time.sleep()
    4. D.A second turn to straighten up

    Answer Why?

  3. Starting at the bottom-left corner facing away from you, the robot runs: drive_intersections(3), turn_clockwise(), drive_intersections(2). Where does it end up?

    1. A.Back at the start
    2. B.3 intersections up from the start, then 2 intersections to the right from there
    3. C.2 up, then 3 to the right
    4. D.It never turns

    Answer Why?