Which line is written correctly?
- A.Print("Driving...")
- B.print "Driving..."
- C.print("Driving...")
- D.print(Driving...)
Answer Why?
What's wrong with this line? for i in range(4)
- A.range should be capitalized
- B.It is missing the colon at the end — for i in range(4):
- C.It needs quotes around the 4
- D.Nothing is wrong
Answer Why?
Why does drivetrain.straight(-30) drive the robot backward?
- A.Negative numbers reverse the direction — same as a negative cm in the Straight block
- B.It drives forward 30 cm, then stops
- C.It turns instead of driving
- D.It causes an error
Answer Why?
Find the bug in the code above.
- A.straight should be capitalized
- B.Print should be lowercase: print
- C.The distances should be positive
- D.There is no bug
Answer Why?