WorksheetsMT4-6 Ro2 1718
Total questions: 28
Worksheet time: 14mins
How do if-else statements work?
The robot checks the condition next to the keyword if. If the condition is true, the commands that belong to the "if" are run. If the condition is false, the commands that belong to the "else" are run.
The robot checks the condition next to the keyword if. If the condition is true, the commands that belong to the "if" are run and the robot loops back to check again. If the condition is false, the commands that belong to the "else" are run.
The robot checks the condition next to the keyword if. If the condition is true, the commands that belong to the "if" are run for the duration of the program. If the condition is false, the commands that belong to the "else" are run for the duration of the program.
How many times does an If statement run its code (if the condition is true)?
Once
None
Twice
As long as the condition is true
In an if-else statement, the else branch:
Will never be run.
Will always run after the if statement.
Will run if the if statement is false.
Repeats forever.
Ambient sources of light such as the sun and lamps can affect Line Tracking sensor readings and the appropriate thresholds for them.
True
False
Only if the lamps are incandescent
Only if the lamps are phosphorescent
Why is the VEX Light Sensor considered a Passive sensor, while the VEX Line Tracking Sensor is considered an Active sensor?
The Line Tracking Sensor is more commonly found on highly-mobile robots; the Light Sensor is not.
The Line Tracking Sensor has its own IR light source; the Light Sensor does not.
The Line Tracking Sensor is not affected by ambient light; the Light Sensor is affected by ambient light.
On the VEX Cortex, what range of values do the Line Tracking Sensors provide?
0 to 100
0 to 1023
0 to 4095
-127 to 127
What is a Threshold in robot programming?
A threshold is a minimal motor power level before the motors will start to spin.
A threshold is a safe starting zone for your robot, ensuring it won't fall off a challenge table.
A threshold is a value that separates many values into just two categories so the robot can make a decision
When line tracking, if the robot consistently swings past the line or doesn't move at all, it may be a problem with:
the ROBOTC Sensor Debug Window.
the name of your program.
the threshold value.
the robot's memory being corrupt.
To change how long a robot tracks a line, you generally would modify the:
While loop condition
Threshold value
Motor power levels
When using the VEX Line Tracker sensor, a dark surface gives a:
Value of 1
High Sensor Value
Value of 0
Low Sensor Value
The VEX LCD is useful for:
displaying sensor values.
displaying messages at different points in the program.
using the built-in buttons to control robot behavior.
all of the above.
none of the above.
The VEX LCD has separate commands for displaying numbers, characters, and strings.
True
False
True for numbers only
True for strings only
What port does the VEX LCD connect to on the VEX Cortex?
The I2C Port
Digital Port 2
Analog Port 2
UART Port 2
How many lines does the VEX LCD have?
1
2
3
4
How many seconds should the robot be kept completely still so that the Gyro can properly calibrate?
< .5
>= 1.1
<= 1
0
What does the VEX Gyro measure?
Rotation of a shaft.
Rotation of the robot, or subassembly it's mounted on
Rotation of the Earth
The resolution of the VEX Gyro is in:
tenths of a degree.
hundredths of a degree.
degrees.
What type of sensor is a Gyroscope?
Analog
Light Speed
Digital
Hydrophonic
What type of sensor is an Accelerometer?
Velocity
Digital
Analog
Accelerator
For each axis the Accelerometer, it must use a port. How many axes, or ports, are the maximum the accelerator can measure?
1
2
3
4
What type of sensor is a Light Sensor?
Digital
Photonic
Rainbow
Analog
What are the range of values a light sensor will return?
-127 to 127
0 to 627
0 to 360
0 to 4095
What type of light does the light sensor detect?
Infrared
Ambient
Ultraviolent
Dark
What would be a good application for the light sensor?
Detecting when a robot moves into a shadowed area
Turn off power when the surrounding light falls below a threshold
All of the above
None of the above
What is the advantage of having three-line tracking sensors over just one?
Three-line tracking sensors allows your robot to actually track the line as well as detect corners and intersections.
Three-line tracking sensors are more robust, as they will automatically compensate when one sensor breaks down.
Three-line tracking sensors work together to get more accurate sensor readings.
What unit of measurement are the values of the VEX Line Tracking Sensors in?
Inches (in)
The measurements are not in any units.
Centimeters (cm)
Millimeters (mm)
If a shaft encoder has a value of 1080 counts, it has rotated how many times?
Three
One
Two
Four
The shaft encoder measures the _________ of the shaft or axle passing through it.
Weight
Rotations
Strength
Torque
