Robotics Test Review
“A way to store a value in memory of a certain size, and have it accessible by name”
Types that we have used:
- Word (numbers range from 0-16534)
- Nib (numbers range from 0-15)
myCounter VAR Word
someVariable VAR Nib
“A conditional statement. A way to run specific code for specific conditions.”
test VAR Word
test = 40
IF (test < 30) THEN
ELSEIF (test > 50) THEN
‘ Which routine is run?
“A subroutine is simply a specific piece of code (often one that is used repeatedly) that is written as a unit, then called.”
‘do something here
“A loop that will continue to repeat indefinitely.”
‘do something here, that will be repeated indefinitely
“A loop that uses a variable to count how many times to loop.
(Assuming a variable called “loopCounter” has been declared)
FOR loopCounter = 0 to 40
‘do something here, that will be repeated how many times?