Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

VEX & Programming Review

Total questions: 27

Worksheet time: 14mins

Name
Class
Date
1.

This is a picture of which of the following?

a)

VEX Motor

b)

VEX Cortex

c)

VEX Battery

d)

Robot Motion Controller

2.

Fill in the Blank: The _____________ responds to the touch of a user or object. With 0 meaning no touch and 1 meaning pressed in.

a)

Ultrasonic Range Finder

b)

Encoder

c)

Limit Switch

d)

Cortex

3.

With 4095 degrees of movement, the ____________ allows the user to turn a gear on top of it to read how much this sensor has been spun.

a)

Potentiometer

b)

Encoder

c)

Range Finder

d)

Line Follower

4.

Which VEX Sensor is picture here?

a)

Line Tracker

b)

Light Sensor

c)

Encoder

d)

Ultrasonic Range Finder

5.

startMotor (leftmotor, 100);

stopMotor (leftmotor);


What will happen if the above code is run?

a)

The Left Motor will spin at 100 speed

b)

The Left Motor will spin at 100 speed for 1 second

c)

The Left Motor will not visibly spin.

d)

The Right Motor will spin at -100 speed

6.

'If' is a conditional statement which checks a sensor for something to be ______________.

a)

True or False

b)

Left or Right

c)

Short or Tall

d)

Near or Far

7.

'Else' is a conditional statement which is dependent upon an earlier _____________.

a)

While Loop

b)

If Statement

c)

Debugger Window

d)

Else Statement

8.

What does the wait( ) command do?

a)

Allows you to specify an amount of time, in seconds, for the program to run without interruption.

b)

Allows you to specify an amount of time, in minutes, for the program to run without interruption.

c)

Pauses all VEX movement for an amount of time, in seconds.

d)

Pauses all VEX movement for an amount of time, in minutes.

9.

What do curly braces do? { }

a)

Surround commands which will be run.

b)

Surround commands which will not be run

c)

Separates Task Main from the rest of the code

d)

Annoy students trying to code

10.

Which of the following is NOT a digital sensor?

a)

Bump Switch

b)

Limit Switch

c)

Encoder

d)

Potentiometer

11.

Where do you input the layout of your Cortex within ROBOTC to determine where each of your motors and sensors are plugged in?

a)

Debugger Windows

b)

Pragma Code

c)

Motors and Sensors Setup

d)

Variable and Function Pane

12.

Which of the following commands is used to create loops in your program?

a)

If

b)

Else

c)

Else If

d)

While

13.

Which keyword would you use to create a variable in ROBOTC?

a)

int

b)

var

c)

let

d)

void

14.

Which keyword would you use to define a function in ROBOTC?

a)

void

b)

int

c)

while

d)

stopMotor

15.

Which of the following is NOT considered a conditional (Boolean) statement in ROBOTC?

a)

If

b)

Else If

c)

Else

d)

startMotor

16.

Which of the following commands would you use in ROBOTC to stop a motor?

a)

stopMotor

b)

startMotor

c)

while

d)

taskmain()

17.

Conditional programming which uses symbols like == and >= are formally known as:

a)

Boolean Logic

b)

True or False Programs

c)

Lie Detector Programs

d)

Conditional Codes

18.

while (SensorValue[bumpSwitch]==0)


What condition is the above while loop dependent on?

a)

While the Limit Switch is pressed in

b)

While the Bump Switch is pressed in

c)

While the Bump Switch is untouched

d)

While the Program is Running

19.

Which of the following would you enter into a while() statement to make your program run forever?

a)

SensorValue[limitSwitch]==1

b)

motorcount < 365

c)

1 != 1

d)

1 == 1

20.

What is most likely to happen based on the following code:


if (SensorValue(bumpSwitch) == 2)

{

startMotor(leftMotor, 130);

}

a)

If the bumpSwitch is pressed in the leftMotor turns on

b)

If the bumpSwitch is NOT pressed in the leftMotor turns on

c)

Nothing

d)

If the bumpSwitch and limitSwitch are pressed in the leftMotor turns on

21.

Task Main, While Loops, and If & Else Statements all need which of the following at the beginning and end to work properly?

a)

{ } Curly Braces

b)

[ ] Straight Braces

c)

( ) Parentheses

d)

" " Quotation Marks

22.

Which command waits for a bumper or limit switch to be pressed?

a)

UntilDark

b)

UntilLight

c)

UntilTouch

d)

Wait

23.

The main purpose of robots in engineering is to:

a)

Complete tasks humans find too mundane or too dangerous

b)

Complete tasks that are oustanding

c)

Complete tasks meant for humans so they can be replaced

d)

Get that bread

24.

What declaration is needed in every program we have run in ROBOTC?

a)

While

b)

If

c)

startMotor

d)

task main()

25.

What is the maximum number a VEX Robotics motor can be spun at in ROBOTC?

a)

155

b)

88

c)

365

d)

127

26.

In this window, you can see the current values of all motors and sensors:

a)

Pragma Code

b)

Debugger Window

c)

Motors and Sensors Setup

d)

Function Window

27.

In this program: if (SensorValue(bump)==1) What does this statement describe.

a)

A while loop which will be activated by the bump switch

b)

An else statement controlled by the bump switch

c)

An if statement controlled by the bump switch

d)

A sensor value that increases by 1 each time.