wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

3.1.1 Intro To VEX and ROBOTC

Total questions: 48

Worksheet time: 29mins

Name
Class
Date
1.

When using a joystick and not wire between it and controller you are in?

a)

Autonomous mode

b)

Tethered mode

c)

Wifi mode (wireless)

d)

The commode

2.
Which one of these representations of Task Main will work in ROBOTC?
a)
Task main ()
b)
task main ()
c)
Taskmain ()
d)
task main;
3.
What does it mean when a command appears in color when typed in ROBOTC?
a)
The command is typed incorrectly
b)
The command is not allowed in the command
c)
ROBOTC recognizes the command as an important keyword
d)
It is highlighted so the programmer should look at the word or name carefully 
4.
All programs must end with a 'Stop' command.
a)
True
b)
False
5.
The purpose of 'whitespace' is:
a)
To allow the robot to understand the program better
b)
To make the program more readable to the programmer
c)
To speed the operation of the robot
d)
To slow the operation of the robot
6.
If there are no more statements to run in the program:
a)
The robot will stop
b)
The robot will continue its last statement until it can find another statement
c)
The robot will continue its last statement until it can find the Stop command
d)
The robot will go back to the beginning of the program and start all over
7.
A simple statement is:
a)
A statement that never uses words with more than two syllables
b)
A line of code, irrespective of spelling
c)
A line of code irrespective of punctuation
d)
A line of code including all the appropriate words, numbers, and punctuation
8.
If one of a paired punctuation such as parentheses is missing:
a)
The robot will assume that it is there and continue running
b)
The program will not compile and the programmer will see an error message
c)
The program will bypass that statement
d)
The program will delete the paired punctuation that is not missing
9.
Pick the true statement:
a)
Paired punctuation are interchangable
b)
As long as there are two brackets of any kind in a pair, the program will work
c)
Curly braces surround what the robot will run as part of the main program, or task
d)
Motor command must use parentheses and wait for commands must use square brackets
10.
A single line comment begins with:
a)
A single slash (/)
b)
Two slashes (//)
c)
A slash and asterisk (/*)
d)
An asterisk and a slask (*/)
11.
Which command means run time
a)
wait
b)
stopMotor
c)
startMotor
12.
When you press a button, which command would be used?
a)
untilTouch
b)
untilBump
c)
startMotor
d)
wait
13.
When you use a limit switch, which command would be used?
a)
untilTouch
b)
untilBump
c)
startMotor
d)
wait
14.

Where do you type your instructions?

a)

1

b)

2

c)

3

d)

4

15.

What is a Subsystem?

a)

Industrial robots

b)

components that provide the robot with the ability to interact with its environment. One example would be a gripper.

c)

The off-road robot platform moves at about 5 mph

d)

the specific component of the robot that includes the drivetrain, control system, and the manipulators.

16.

What are Manipulators?

a)

Coordinates all aspects of the robot.

b)

A person that manipulates you and steals your money.

c)

components that provide the robot with the ability to interact with its environment. One example would be a gripper.

d)

A shady person.

17.

What does a Control System do?

a)

loads the programs

b)

coordinates the programming software.

c)

supports the robots arms and wheels

d)

coordinates all aspects of the robot.

18.

What are sensors?

a)

the computer that filters the information collected from the sensors and responds by making decisions using logic.

b)

devices that lose information every time

c)

devices that collect input from the environment and provide information that the CPU can respond to.

d)

allows the robot to perform desired tasks without human guidance.

19.

what is Drivetrain?

a)

a type of motor that is only able to move 150 degrees.

b)

he robotics subsystem that provides the ability to move around the field.

c)

the computer component that controls all of the robots systems.

d)

a device for measuring or maintaining orientation, based on the principles of angular momentum.

20.

What is the purpose of the line 'task main() followed by { }'?

a)

It's a comment used to define the main scope

b)

Sets up multitasking

c)

Sets up a program's main task only

d)

Sets up a program's main task and scope

21.

What does this line of code do?

a)

Assigns the vertical right joystick to the main motor

b)

Assigns the horizontal right joystick to the motor port named 'mainMotor'

c)

Assigns the vertical left joystick to the motor port named 'mainMotor'

d)

Assigns the horizontal left joystick to the main motor

22.

What do these lines of code do?

a)

motors for ports 2 and 5 half power in reverse, motors for ports 3 and 4 half power, only while button 6-d is pressed

b)

motors for ports 3 and 4 full power in reverse, motors for ports 2 and 5 full power, only if button 6-d is pressed

c)

motors for ports 2 and 5 half power in reverse, motors for ports 3 and 4 half power, only if button 6-d is pressed

d)

motors for ports 2 and 5 full power in reverse, motors for ports 3 and 4 full power, only when button 6-d is pressed

23.

When you start a new program it is good practice to

a)

Name your program using File/Save As

b)

Configure Motor and Sensor Setup

c)

Save your file in the proper directory

d)

All of these statements are true

24.

________ is used to temporarily "disable” code in a program without deleting it.

a)

commenting out

b)

deletion

c)

brackets

d)

highlighting

25.

How many analog ports on the Cortex microcontroller?

a)

6

b)

8

c)

10

d)

12

26.

How many digital ports on the Cortex microcontroller?

a)

6

b)

8

c)

10

d)

12

27.

A motor can be reversed by_____________.

a)

Standing on my head and looking at the motor upside down

b)

changing the sign (+/-) of the speed in the program

c)

Check "Reverse" in Motors & Setup

d)

turn the motor with my LEFT hand instead of my right hand

28.

Which battery condition allows the fastest motor rotation?

a)

50% charged

b)

75% charged

c)

100% charged

d)

charged to my credit card

29.
A program is
a)
A logical and step-by-step set of directions for the robot to follow
b)
A logical and step-by-step set of directions for the programmer to follow
c)
A set of directions, written in paragraph form, that even a robot can follow
d)
None of these
30.

What do '#Pragma config()' statements do?

a)

They start the program

b)

They do nothing

c)

They configure settings which live in their own section of flash memory that is outside of your program code. They are available as soon as the microcontroller gets power, regardless where they are written in your code. This is important because sometimes they are needed before your program is executed.

d)

Random lines of code

31.
Pseudocode is:
a)
False code
b)
A code, written in English, that the robot can understand
c)
A code, written in binary language, that the robot can understand
d)
A set of basic steps that the human can use to plan the program
32.
Which command means turn off motor?
a)
wait
b)
stopMotor
c)
startMotor
33.

All of these are digital sensors except?

a)

light sensor

b)

shaft encoder

c)

bump switch

d)

ultrasonic range finder

34.
Using the picture, which part is being shown?
a)
cortex
b)
motor
c)
limit switch
d)
battery pack
35.
Using the picture, which part is being shown?
a)
bump sensor
b)
potentiometer
c)
limit switch
d)
line tracker
36.
What is this VEX Robot part?
a)
Vex Servo Motor
b)
Vex Motor Controller
c)
Vex Bump Switch
d)
Vex Cortex
37.
Code to turn on a motor. 
a)
startMotor(motorport, speed); 
b)
startMotor
c)
STARTMOTOR(motorport, speed);
d)
GoMotorGo(motorport, speed);
38.

What does a while loop do?

a)

Allows a section of code to be repeated as long as a certain condition remains true.

b)

Code that waits until you press a button.

c)

Allows a section of code to be repeated over and over again.

d)

Allows a section of code to be repeated as long as a certain condition remains false.

39.
A robot's task is: Move forward at full speed for 10 seconds. Then stop. 
The pseudocode is:
1. Start Rmotor full speed
2. Start Lmotor full speed
3. _______________
4. Stop Rmotor
5. Stop Lmotor
What is the missing line of pseudocode?
a)
Start both motors
b)
Wait 10 seconds
c)
Wait 5 seconds
d)
Turn LED on
40.
A robot's task is: When a button is pressed, turn on the left motor at 1/2 speed for 3 seconds. Then stop.
Pseudocode:
1. When button is pressed
2. _________________________
3. Wait 3 seconds
4. Stop Lmotor
What is the missing line of pseudocode?
a)
Start Lmotor at 1/2 speed
b)
Lmotor off
c)
Start Lmotor at full speed
d)
Rmotor on at 1/2 speed
41.
What is a robot sensor?
a)
A part that gathers information about the robot's environment (speed, distance, light, touch, etc.)
b)
A part that does work and creates the robot's output
c)
The brain of the robot
d)
A part that doesn't really do anything on the robot
42.
Imagine you compiled your Robot C program and got a bunch of errors (red Xs). What would you do next?
a)
Give up
b)
Check that the spelling in my code matches the sensors and motor
c)
Ask my partner to fix it
d)
Delete my code and start over
43.

Imagine you compiled your code and there were NO errors, but your code didn't run on the robot. What would you do next?

a)

Check that the motor and sensor ports in the set up match where my motors and sensors are plugged in on the Cortex.

b)

Wait for your teacher to fix it, it's not your job.

c)

Close my computer and put my head down.

d)

Delete my code and start over.

44.

A function in RobotC allows you to:

a)

Use a sensor of your own design

b)

Use an analog sensor as a digital sensor

c)

Write a segment of code once, name it and then use it throughout the program

d)

Write a segment of code once and then use it under a different name throughout the program

45.

The potentiometer is:

a)

An analog sensor that can rotate one full revolution in either direction

b)

An analog sensor that can rotate 250 degrees in either direction

c)

An analog sensor that can rotate a total of 360 degrees

d)

An analog sensor that can rotate a total of 250 degrees

46.

How many motor ports are there on the VEX Cortex?

a)

12

b)

8

c)

10

d)

6

47.

Into which ports can you plug in the motor controller?

a)

Ports 1 and 10

b)

Ports 2 thru 5

c)

Port 2 thru 9

d)

Into the digital ports

48.

What is the top speed value for the VEX EDR motors when programming?

a)

2000

b)

180

c)

5000

d)

127