| A | B |
| main() | the task executed by the robot |
| task | a number of commands for the robot to complete |
| statements | commands for the robot |
| ; | each statement ends with |
| OnFwd(Out_A) | starts output A |
| Wait(20) | a wait of 20 tics continues doing what ever the previous command was |
| ticks | 1/1000 of a second |
| Off(OUT_A+OUT_C) | turns off outputA and output C |
| reserved words | words that NQC uses and cannot be used to name variables |
| compiled | changed into code that the robot can understand and execute |
| downloading | sending the program to the robot over the infrared link |
| syntax errors | using vocabulary that NQC does not support |
| SetPower() | controls the speed |
| repeat(3) | repeats code within a block |
| { } | designates a block of code |
| variable | a name given to a place in memory |
| constant | an unchanging variable |
| // | comments |