wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FTC Code

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

I want the claw to open when I press a button. How do i put this in my code?

a)

if(gamepad1.a){

claw.setPosition(.5);}

else{

claw.setPosition(0);}

b)

claw.setPosition(gamepad1.a);

c)

claw.setPower(gamepad1.a);

d)

if(gamepad1.a){

claw.setPower(1);}

2.

In the following, what is motorLeft_?

if(gamepad1.y){

motorLeft_.setPower(power_motors);

a)

The variable name that matches the name you assigned in the robot configuration

b)

A motor in our gobilda kits is manufactured name is motorLeft_

c)

A servo for the left side of the claw

3.

Assuming that positive power_motors makes the robot drive forward

What happens if I press a?

a)

The robot will drive in reverse

b)

The robot will turn to the left

c)

The robot will turn to the right

d)

The robot will drive forward

4.

Assuming that positive power_motors makes the robot drive forward

What happens if I press y for a second and then let go?

a)

The robot will drive in reverse

b)

The robot will drive forward and then backwards

c)

The robot will drive forward and will not stop unless setPower(0) is somewhere else in the code

d)

The robot will drive forward and then stop

5.

What happens if I press button b?

a)

The robot will turn left

b)

The robot will turn right

c)

The robot will go in reverse

d)

The robot will strafe left

6.

How can I make the robot turn to the right?

a)

Press the left bumper

b)

Press the right bumper

c)

Press x

d)

Press both bumpers at the same time

7.

What does this piece of code do?

a)

Configures the motors

b)

Declares the motors

c)

initializes the power of the motors

8.

The name in " " must match what?

a)

The name that is entered into the configuration file

b)

The port that the motor is plugged into

c)

The location on the robot for where the motor is mounted

d)

The type of motor it is.

9.

If I program the left motor to set power to left_stick_y. What power will that motor receive if the left stick is pushed all the way forward?

a)

The power of that motor will be set to 1

b)

The power of that motor will be set to -1

c)

The power of that motor will be set to 100

d)

The power of that motor will be set to -100

10.

If I program the left motor to set power to left_stick_y. What power will be the set power of that motor if I push the stick all the way down?

a)

The power of that motor will be set to 1

b)

The power of that motor will be set to -1

c)

The power of that motor will be set to 100

d)

The power of that motor will be set to -100

11.

If I program the left motor to set power to left_stick_y. What will happen if the left stick is at resting position?

a)

The power of that motor will be set to 0

b)

The power of that motor will be set to 1

c)

The power of that motor will be set to -1

d)

The power of that motor will be set to .5

12.

If your robot is slightly drifting due to mechanical error, what should you do?

a)

change the code to correct the mechanical issue

b)

correct the mechanical issue DO NOT TOUCH your code

13.

What does Telemetry do?

a)

Displays a message on the DS

b)

Command needed to start the program

c)

Stores comments for you in your code

d)

Command needed to drive forward

14.

In Java what character goes at the end of every line?

a)

;

b)

.

c)

,

d)

:

15.

What is the first 30 seconds of the match called?

a)

Autonomous Mode

b)

Teleop Mode

c)

End Game

d)

Insane Mode

16.

Where do you find your auto mode if you want to test it?

a)

In the ftc driver station app on the driver hub on the left side of the programs

b)

In the ftc driver station app on the driver hub on the right side of the programs

c)

In the ftc driver station on the control hub

d)

In the ftc driver station, press a on the controller

17.

A servo when it is set position goes through positions from ____ to _____

a)

0 to 1

b)

-1 to 1

c)

-.5 to .5

d)

-100 to 100