[an error occurred while processing this directive]
HOME
FUNDAMENTALS
SETUP
MOVEMENT
REMOTE CONTROL
SENSING
[an error occurred while processing this directive] [an error occurred while processing this directive]
Exit
- :
[an error occurred while processing this directive]
Check Your Understanding:
1. If one of a paired punctuation such as parentheses is missing:
The robot will assume that it is there and continue running
The program will not compile and the programmer will see an error message
The program will bypass that statement
The program will delete the paired punctuation that is not missing
2. Pick the true statement:
Paired punctuation are interchangeable. i.e., You can replace a pair of square brackets with a pair of curly braces
As long as there are two brackets of any kind in a pair, the program will work
Curly braces surround what the robot will run as part of the main program, or task
Motor command must use parentheses and wait for commands must use square brackets
3. A simple statement may affect the order that statements are run, allowing the program to skip or repeat commands as needed
True
False
4. A single line comment begins with:
A single slash (/)
Two slashes(//)
A slash and asterisk (/*)
An asterisk and a slash (*/)
5. A multiline comment ends with:
The pressing of the Enter key
A single slash (/)
An asterisk and a slash (*/)
Two slashes (//)
Comments
ROBOTC
Error Messages
ROBOTC Rules