When an if/else runs, how many of the two blocks execute?
- A.Both, top to bottom
- B.Exactly one — whichever matches the condition
- C.Neither, unless you call them
- D.It depends on the sensor
Answer Why?
What does `while True:` do?
- A.Runs the loop once
- B.Loops forever, until the robot is powered off or stopped
- C.Causes a syntax error
- D.Runs the loop only if a sensor is True
Answer Why?
left is 0.2 and right is 0.9 (threshold 0.5). Is `left > threshold or right > threshold` True?
- A.False — the left sensor is on white
- B.True — the right sensor is over the line, and or needs only one side
- C.False — you need both sensors on the line
- D.It causes an error
Answer Why?