Skip to main content
Module 2 · Line Tracking

Lesson 2-9 · Line-Tracking Functions — Knowledge ChecksAnswer key

Correct answers are marked and the explanation follows each question.

  1. Why does turn_clockwise() start with a blind 60-degree turn before the while loop?

    1. A.To make the turn faster
    2. B.Both sensors are still on the line it was following; without moving off it first, is_either_on_line() is already True and the loop ends before the turn starts✓
    3. C.Because 60 + 30 = 90
    4. D.To recharge the battery

    The sensor-ended loop needs a moment when neither sensor is on tape. The blind turn provides it; the loop then finishes the turn on the next line it finds.

  2. What does pass do inside the while loop?

    1. A.Skips the turn
    2. B.Nothing — it is a placeholder; the loop just keeps re-checking is_either_on_line() while the motors run✓
    3. C.Pauses the program
    4. D.Passes the robot to the next line

    pass is a do-nothing statement. The motors were already told to spin; the loop's body has nothing to add, and Python needs something there.