Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MT4-6 Ro2 1718

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

How do if-else statements work?

a)

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.

b)

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.

c)

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.

2.

How many times does an If statement run its code (if the condition is true)?

a)

Once

b)

None

c)

Twice

d)

As long as the condition is true

3.

In an if-else statement, the else branch:

a)

Will never be run.

b)

Will always run after the if statement.

c)

Will run if the if statement is false.

d)

Repeats forever.

4.

Ambient sources of light such as the sun and lamps can affect Line Tracking sensor readings and the appropriate thresholds for them.

a)

True

b)

False

c)

Only if the lamps are incandescent

d)

Only if the lamps are phosphorescent

5.

Why is the VEX Light Sensor considered a Passive sensor, while the VEX Line Tracking Sensor is considered an Active sensor?

a)

The Line Tracking Sensor is more commonly found on highly-mobile robots; the Light Sensor is not.

b)

The Line Tracking Sensor has its own IR light source; the Light Sensor does not.

c)

The Line Tracking Sensor is not affected by ambient light; the Light Sensor is affected by ambient light.

6.

On the VEX Cortex, what range of values do the Line Tracking Sensors provide?

a)

0 to 100

b)

0 to 1023

c)

0 to 4095

d)

-127 to 127

7.

What is a Threshold in robot programming?

a)

A threshold is a minimal motor power level before the motors will start to spin.

b)

A threshold is a safe starting zone for your robot, ensuring it won't fall off a challenge table.

c)

A threshold is a value that separates many values into just two categories so the robot can make a decision

8.

When line tracking, if the robot consistently swings past the line or doesn't move at all, it may be a problem with:

a)

the ROBOTC Sensor Debug Window.

b)

the name of your program.

c)

the threshold value.

d)

the robot's memory being corrupt.

9.

To change how long a robot tracks a line, you generally would modify the:

a)

While loop condition

b)

Threshold value

c)

Motor power levels

10.

When using the VEX Line Tracker sensor, a dark surface gives a:

a)

Value of 1

b)

High Sensor Value

c)

Value of 0

d)

Low Sensor Value

11.

The VEX LCD is useful for:

a)

displaying sensor values.

b)

displaying messages at different points in the program.

c)

using the built-in buttons to control robot behavior.

d)

all of the above.

e)

none of the above.

12.

The VEX LCD has separate commands for displaying numbers, characters, and strings.

a)

True

b)

False

c)

True for numbers only

d)

True for strings only

13.

What port does the VEX LCD connect to on the VEX Cortex?

a)

The I2C Port

b)

Digital Port 2

c)

Analog Port 2

d)

UART Port 2

14.

How many lines does the VEX LCD have?

a)

1

b)

2

c)

3

d)

4

15.

How many seconds should the robot be kept completely still so that the Gyro can properly calibrate?

a)

< .5

b)

>= 1.1

c)

<= 1

d)

0

16.

What does the VEX Gyro measure?

a)

Rotation of a shaft.

b)

Rotation of the robot, or subassembly it's mounted on

c)

Rotation of the Earth

17.

The resolution of the VEX Gyro is in:

a)

tenths of a degree.

b)

hundredths of a degree.

c)

degrees.

18.

What type of sensor is a Gyroscope?

a)

Analog

b)

Light Speed

c)

Digital

d)

Hydrophonic

19.

What type of sensor is an Accelerometer?

a)

Velocity

b)

Digital

c)

Analog

d)

Accelerator

20.

For each axis the Accelerometer, it must use a port. How many axes, or ports, are the maximum the accelerator can measure?

a)

1

b)

2

c)

3

d)

4

21.

What type of sensor is a Light Sensor?

a)

Digital

b)

Photonic

c)

Rainbow

d)

Analog

22.

What are the range of values a light sensor will return?

a)

-127 to 127

b)

0 to 627

c)

0 to 360

d)

0 to 4095

23.

What type of light does the light sensor detect?

a)

Infrared

b)

Ambient

c)

Ultraviolent

d)

Dark

24.

What would be a good application for the light sensor?

a)

Detecting when a robot moves into a shadowed area

b)

Turn off power when the surrounding light falls below a threshold

c)

All of the above

d)

None of the above

25.

What is the advantage of having three-line tracking sensors over just one?

a)

Three-line tracking sensors allows your robot to actually track the line as well as detect corners and intersections.

b)

Three-line tracking sensors are more robust, as they will automatically compensate when one sensor breaks down.

c)

Three-line tracking sensors work together to get more accurate sensor readings.

26.

What unit of measurement are the values of the VEX Line Tracking Sensors in?

a)

Inches (in)

b)

The measurements are not in any units.

c)

Centimeters (cm)

d)

Millimeters (mm)

27.

If a shaft encoder has a value of 1080 counts, it has rotated how many times?

a)

Three

b)

One

c)

Two

d)

Four

28.

The shaft encoder measures the _________ of the shaft or axle passing through it.

a)

Weight

b)

Rotations

c)

Strength

d)

Torque