wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

RobotC Review

Total questions: 25

Worksheet time: 22mins

Name
Class
Date
1.

What software do we use to create programs for our robots?

a)

RobotC

b)

Vex IQ

c)

Lego Mindstorms

d)

Python

2.

How do you open a new template file for new programs?

a)

RobotC/Open File/This Pc/S12345

b)

RobotC/File/Open Sample Programs/Vex2/PLTW/PLTWtemplate.c

c)

VexVR/Load File From Device

3.

Which two settings are accurate for your PLATFORM TYPE?

a)

Vex 2.0 Cortex and Natural Language PLTW

b)

Vex 2.0 Cortex and Natural Language 2.0

c)

Vex IQ and Natural Language PLTW

d)

Vex IQ and Natural Language 2.0

4.

In order to run your robot without the orange USB cord, what should the Vex Cortex Communication mode be set to?

a)

VEXnet or USB

b)

USB only

c)

Competition (VEXnet)

5.

Where is the COMMUNICATION MODE setting found in RobotC?

a)

Click on "File"

b)

Click on "Robot"

c)

Click on "Edit"

d)

Click on "View"

6.

Which menu would you click on to add motors to your program?

a)

Motor and Sensor Set-up

b)

Firmware Download

c)

Compile Program

d)

Download to Robot

7.

Which type of motor do we use in class?

a)

Vex 269

b)

Vex 393

c)

Vex 393 High Speed Motor

d)

Vex 393 Turbo Speed Motor

8.

Which menu would you select to add a BUTTON to your program?

a)

Motor and Sensor Set-up

b)

Firmware Dowload

c)

Compile Program

d)

Download to Robot

9.

What do these instructions tell the robot to do?

a)

Move forward for 63 seconds

b)

Move backwards for 1 second

c)

Move forward for 1 second at half speed

d)

Wait 1 second before moving forward 63 inches

10.

What do these instructions tell the robot to do?

a)

Move backwards for 63 seconds

b)

Move backwards for 2 seconds at half speed

c)

Turn in circles for for 2 seconds

d)

Wait 2 seconds before moving backwards 63 inches

11.

What do these instructions tell the robot to do?

a)

Make a left swing turn

b)

Make a left point turn

c)

Make a right swing turn

d)

Make a right point turn

12.

What do these instructions tell the robot to do?

a)

Make a left swing turn

b)

Make a left point turn

c)

Make a right swing turn

d)

Make a right point turn

13.

What color are the comments in RobotC?

a)

red

b)

black

c)

blue

d)

green

14.

Some punctuation comes in pairs, like parentheses () and curly braces {}. What will happen if one of the pair are 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 skip the statement

d)

the program will delete the paired punctuation that is not missing

15.

How would you fix the error on line 2 in this program?

a)

add “ { ” (open bracket)

b)

add “ } “ (closed bracket)

c)

line is not needed - delete line

d)

add a ‘ ; ” at the end of the line

16.

How would you fix the error on line 1 in this program?

a)

add “ { ” (open bracket)

b)

“task main” needs to be one word “taskmain”

c)

add “ ) “ (closed parenthesis)

d)

add a “ ; ” at the end of the line

17.

How would you fix the error on line 7 in this program?

a)

“stopMotor” needs to be “Stopmotor"

b)

should be written as (63, leftMotor)

c)

speed should be “127” instead of “63 “

d)

There is no speed when stopping a motor.

18.
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
19.

What is NOT true about #pragma statements at the top of your program?

a)

They set the power levels of the motors.

b)

Their code is automatically generated by ROBOTC configuration wizard.

c)

They tell the robot which sensor/motor is connected to which port.

20.

If your robot is turning in circles, but your code indicates that it should be going forward, which option below will NOT fix the problem?

a)

You can reverse a motor in Motor and Sensor Set-up

b)

You can change the positive/negative signs in your code

c)

You can switch the ports where your drive train motors are plugged in

d)

You can turn one motor off and leave the other motor on

21.

If you download your code and the robot doesn't move, but the green line does move down the page, what might fix the problem?

a)

Click "Firmware Download"

b)

Reverse a motor

c)

Unplug the battery and plug it back in

d)

Click "Fix Formatting"

22.

What might be causing this error?

a)

Wrong Platform Type

b)

Wrong communication mode

c)

Motors are named incorrectly

d)

Capitalization error

23.

Where should students save their RobotC programs?

a)

On the desktop

b)

Not necessary, because the programs auto save on the web

c)

Student drive (look for s + lunch number)

d)

In the same folder as the PLTWtemplate files

24.

What is causing these errors?

a)

Wrong platform type

b)

Wrong communication mode

c)

Capitalization errors

d)

Missing semicolons

25.

What is most likely causing these errors?

a)

Missing semicolons

b)

Wrong platform type

c)

Wrong communication mode

d)

Missing pragma statements at the top