wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

fun happy programming quiz

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.
  • What kind of variable are leftmotorspeed / rightmotorspeed?

a)

void

b)

leftmotorspeed

c)

integer

d)

header

2.
  • What’s the purpose of the variable deadband?

a)

to make sure axis values are not one, which would prevent the robot from going in circles.

b)

to know whether someone is driving the robot on the controller or not.

3.
  • Which axis do you use for tank drive? (in order)

a)

3 and 2

b)

2 and 3

c)

1 and 3

d)

1 and 5

4.
  • Which sensor is the most necessary when programming autons?

a)

Bumper Switch

b)

Rotation Sensor

c)

Inertial Sensor

d)

Vision Sensor

5.

What is does vex::sleep mean?

a)

a wait function that takes in seconds

b)

a wait function that takes in milliseconds

c)

a premade function that enables the robot code to work

d)

a vex-made premade function that allows the robot code to declare competition

6.

What is a variable that only can be true or false?

a)

Bool

b)

Int

c)

Str

d)

Void

7.

If you have a semicolon not on the end of a line, then what is that error called?

a)

Logic

b)

Syntax

c)

Runtime

d)

Human

8.

What does error stand for in a drivePID?

a)

(Current Position - Desired Value)

b)

(Desired inches * 360)/(pi x wheeldiameter)

c)
Integral / Derivative
9.

What piece of code contains a logic error (that won't let it be able to function properly but still has proper structure)

a)

LeftMotor.turn(forward)

b)

Drivetrain.move(forward, 1, square)

c)

RightMotorGroup.spin(forward, 28, degrees)

10.

What part of the configuration menu

is used to add pneumatics tubes into code?

a)

digital_out

b)

pneumatics

c)

digital_in

d)

sensor_pneumatics

e)

vex.threewireport.out

11.

how do you wire a pneumatics solenoid?

a)

plug into a normal port

b)

plug into a three-wire port

c)

Only plug into port 22