28 questions
Which command means run time?
wait
stopMotor
startMotor
How do you make the following appear in your program?
Compile program
Download to robot
Motor and Sensor SetUp
Robot-Compiler Target
In RobotC each { must have a } ?
True
False
What happens if one paired punctuation such as parantheses are 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 skip the statement
the program will delete the paired punctuation that is not missing
Identify the line in which the error exists in the program.
line 10
line 11
line 12
line 13
line 14
Find the error in this code.
turnLEDOff(red);
turnLEDOff(yellow)
turnLEDOff(green);
turnLEDOn(red);
untilTouch(touchSensor);
turnLEDOff(red);
Missing a parameter
Missing a semicolon
Reversed parameters
Wrong notation for name of sensor/command
What is this VEX Robot part?
Spur Gear
Bump Switch
Vex Motor
Vex Cortex
What is this VEX Robot part?
Vex Motor
Vex Motor Controller
Vex Bump Switch
Vex Extension Cord
If you want to repeat your code forever, what should go inside the circled parentheses?
1 == 1
1 = 1
1 > 2
1
Where should the "If statement" of a code go in Robot C?
1
2
3
4
5
Where should the "Else Statement" go in Robot C?
4
5
6
7
8
What is the error is shown in the image?
The programmer forgot to do the Motor and Sensor setup
The programmer forgot some punctuation
The programmer forgot to add an If, Else statement
The programmer forgot to compile the program
If there are NO errors in your code, but the program is not running on your robot, what should you do next? (2 correct answers!)
Check that the wiring matches the Motor and Sensor setup
Give up and close your computer
Check that your robot is turned on
Delete the code and write the whole thing again
Change the names of your motors and sensors in Motor and Sensor setup
Everyone can learn how to code.
True
False