Font size
WorksheetsIntroduction to Vex Robotics
Total questions: 30
Worksheet time: 17mins
How many motor ports are there on the VEX Cortex?
12
8
10
6
All 10 motor ports are the same on the VEX Cortex.
True
False
How many motor ports take 3 prongs instead of 2?
8
2
10
6
Into which ports can you plug in the motor controller?
Ports 1 and 10
Ports 2 thru 5
Port 2 thru 9
Into the digital ports
If you want you motor to shut off, what speed value would you program into RobotC?
0
15
-127
127
Which part gets inserted into the motor so you can add wheels and/or gears?
A motor controller
An axle
A base plate
A battery
Which of these actuators mainly produces precise rotary motion
DC Motor
Servo
Solenoid
Rack and Pinion
What is it?
nut
bolt
pliers
pincers
What is it?
bolt
nut
tool kit
wrench
This "D" of robotics has to do with jobs that humans might not want to do because they are boring
(a)
This "D" of robotics has to do with jobs that humans might be too afraid to do
(a)
This "D" of robotics has to do with jobs that humans might be to grossed out to do.
(a)
Line of code to make the motor "leftMotor" move when I push the left stick of the vex remote
motor[leftMotor] = vexRT[Ch3];
motor(leftMotor) = vexRT(Ch3);
motor{leftMotor} = vexRT{Ch3};
Which of the following is not a requirement for being a robot (based on the notes from our class)
Having a power source (battery)
Having inputs (sensors)
Being able to make decisions
Being able to move
Being able to communicate
What is the purpose of "task main()" at the start of a RobotC program
It creates an infinite loop so that the program is always running
It is what executes every time the robot is turned on
It is where you declare and name all of your motors and sensors
It is where you declare what type of robotics platform you are using (cortex 2.0 or IQ)
What is the purpose of using a "while(true)" statement in a RobotC program
It creates an infinite loop so that the program is always running
It is what executes every time the robot is turned on
It is where you declare and name all of your motors and sensors
It is where you declare what type of robotics platform you are using (cortex 2.0 or IQ)
A motor can be reversed by_____________.
Standing on my head and looking at the motor upside down
changing the sign (+/-) of the speed in the program
Check "Reverse" in Motors & Setup
turn the motor with my LEFT hand instead of my right hand
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
Which is NOT an acceptable example of an infinite loop?
while(true)
while(1==1)
while(not false)
while(55==55)
What does this line of code mean?
if the VEX router has a value of 1
while the button 6-up is pressed
nothing because it's written incorrectly
if the VEX remote transmission for button 6-up is true
What do these lines of code do?
motors for ports 2 and 5 half power in reverse, motors for ports 3 and 4 half power, only while button 6-d is pressed
motors for ports 3 and 4 full power in reverse, motors for ports 2 and 5 full power, only if button 6-d is pressed
motors for ports 2 and 5 half power in reverse, motors for ports 3 and 4 half power, only if button 6-d is pressed
motors for ports 2 and 5 full power in reverse, motors for ports 3 and 4 full power, only when button 6-d is pressed
How would you fix the error on line 2 in this program?
add “ { ” (open bracket)
add “ } “ (closed bracket)
line is not needed - delete line
add a ‘ ; ” at the end of the line
How would you fix the error on line 1 in this program?
add “ { ” (open bracket)
“task main” needs to be one word “taskmain”
add “ ) “ (closed parenthesis)
add a “ ; ” at the end of the line
What is causing these errors?
Wrong platform type
Wrong communication mode
Capitalization errors
Missing semicolons
What does every program have to have?
task main( ) and a set of { }
Task main and ( )
Main task and { }
task main and semicolons
Simple ROBOTC commands (statement) always end with a
}
)
semi-colon
]
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
