
FTC Code
Authored by Jessica Holman
Instructional Technology
9th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
I want the claw to open when I press a button. How do i put this in my code?
if(gamepad1.a){
claw.setPosition(.5);}
else{
claw.setPosition(0);}
claw.setPosition(gamepad1.a);
claw.setPower(gamepad1.a);
if(gamepad1.a){
claw.setPower(1);}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following, what is motorLeft_?
if(gamepad1.y){
motorLeft_.setPower(power_motors);
The variable name that matches the name you assigned in the robot configuration
A motor in our gobilda kits is manufactured name is motorLeft_
A servo for the left side of the claw
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming that positive power_motors makes the robot drive forward
What happens if I press a?
The robot will drive in reverse
The robot will turn to the left
The robot will turn to the right
The robot will drive forward
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming that positive power_motors makes the robot drive forward
What happens if I press y for a second and then let go?
The robot will drive in reverse
The robot will drive forward and then backwards
The robot will drive forward and will not stop unless setPower(0) is somewhere else in the code
The robot will drive forward and then stop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if I press button b?
The robot will turn left
The robot will turn right
The robot will go in reverse
The robot will strafe left
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can I make the robot turn to the right?
Press the left bumper
Press the right bumper
Press x
Press both bumpers at the same time
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this piece of code do?
Configures the motors
Declares the motors
initializes the power of the motors
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?