[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. Which one of these representations of Task Main will work in ROBOTC?
Task main ()
task main ()
Taskmain ()
task main;
all of them
2. What does it mean when a command appears in color when typed in ROBOTC?
The command is typed incorrectly
The command is not allowed in the command
ROBOTC recognizes the command as an important keyword
It is highlighted so the programmer should look at the word or name carefully
3. All programs must end with a ‘Stop’ command.
True
False
4. The purpose of ‘whitespace’ is:
To allow the robot to understand the program better
To make the program more readable to the programmer
To speed the operation of the robot
To slow the operation of the robot
5. If there are no more statements to run in the program:
The robot will stop
The robot will continue its last statement until it can find another statement
The robot will continue its last statement until it can find the Stop command
The robot will go back to the beginning of the program and start all over
6. A simple statement is:
A statement that never uses words with more than two syllables
A line of code, irrespective of spelling
A line of code irrespective of punctuation
A line of code including all the appropriate words, numbers and punctuation
Whitespace
Reserved Words