HOME
FUNDAMENTALS
SETUP
MOVEMENT
REMOTE CONTROL
SENSING
---
-
-
-
Exit
- :
...
...
Check Your Understanding:
1. Why is clearing the encoder values important
Without clearing the encoder values, the robot will always start with the last encoder value it measured.
Without clearing the encoder values, the robot will always travel less than the correct distance.
Without clearing the encoder values, the robot will always run in reverse.
Without clearing the encoder values, the robot will always travel more than the correct distance.
2. What are the parts of a while loop
The ‘while’ command and the body of the body of code that is looped
The‘while’ command and the condition to control when the loop should be stopped
The ‘while’ command, the condition to control when the loop should end and the body of the code that is looped
The ‘while’ command, the condition to control when the loop should be stopped and its square braces.
3. The while loop is constantly checking its condition.
True. It continues to check its condition while the code between the curly braces is being executed.
False. It checks its condition before it runs the code between the curly braces and then checks it again after each time it runs the code between the curly braces.
While()
Loops
Boolean Logic Pt 1
1. The symbol ‘!=’ means:
Equals
Exactly equals
Less than equals
Does not equal
Boolean Logic Pt 2