Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Robotics II Final Practice

Total questions: 79

Worksheet time: 42mins

Name
Class
Date
1.

A robot's interface allows a user to...

a)

Interact with the robot

b)

Communicate with the robot

c)

Control the robot

d)

All of the above

2.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 2. All C++ programs start with…

a)

VEX main ( ) { }

b)

run main ( ) { }

c)

int main ( ) { }

d)

task main ( ) { }

3.

Consider the sequence: Brain.Screen.drawCircle(60,70,80) What does the number 80 represent?

a)

X-position

b)

Y-position

c)

Circumference

d)

Radius

4.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 4. Which of the following punctuation marks represents the end of a single command?

a)

Semicolon

b)

Colon

c)

Comma

5.

A (a)   is a series of commands that are completed in a specific order.

Choose from the below words

Parameter

Sequence

Command

Program Flow

6.

A robot completes tasks in a sequence in a random order.

a)

True

b)

False

7.

What error is shown in the sequence below? Brain.screen.setPenColor(yellow); Brain.screen.drawRectangle(15, 25, 60, 70); Brain.Screen.drawRectangle(40, 50, 65, 85);

a)

"PenColor" should be lower case

b)

There should be a period at the end of each command instead of a semicolon

c)

"screen" in the first command should be uppercase

d)

There are too many parameter values for the rectangles

8.

Program Flow is referred to as…

a)

the way a robot executes a program from bottom-to-top.

b)

the way a robot executes a program from top-to-bottom.

c)

the way a robot executes a program by alphabetical order.

d)

the way a robot executes a program in a random order.

9.

Consider the code below to answer the following question:
Brain.Screen.drawCircle(30,40,50, purple);
Brain.Screen.drawCircle(30,40,50,yellow);
What will be the color of the circle visible on the screen?

a)

Purple

b)

Yellow

c)

Both purple and yellow

d)

No circle will be visible

10.

How will this code be displayed on the Robot Brain screen?

a)

There will be two circles of the same size and same color next to each other

b)

There will be two circles of the same size and same color overlapping each other

c)

The circles are the same size and same location. The yellow circle is not visible because the purple circle is on top of it.

d)

The circles are the same size and same location. The purple circle is not visible because the yellow circle is on top of it.

11.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 1. The robotic subsystem that provides the ability to move is known as a…

a)

Drivetrain

b)

Arm

c)

Claw

d)

Sensor

12.

When your robot drives forward or reverse, it is following a linear path. When an object moves from one point to another in a straight line, it is known as _________________

a)

Linear acceleration

b)

Linear movement

c)

A to B movement

d)

Forward movement

13.

The robotic subsystem that provides the ability to grab objects is the...

a)

Drivetrain

b)

Arm

c)

Claw

d)

Sensor

14.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 4. True or False: There is a direct proportional relationship between how much the motors spin, how much the wheels spin, and how much the robot moves.

a)

True

b)

False

15.

I want my robot to drive forward for 350mm and then reverse back to where it started. What would my program look like?

a)

Drivetrain.driveFor(forward, 350, mm); Drivetrain.driveFor(reverse, 350, mm);

b)

Drivetrain.driveFor(forward, 350, mm); Drivetrain.driveRev(reverse, 350, mm);

c)

Drivetrain(driveForward, 350, mm). Drivetrain(driveReverse, 350, mm).

d)

Drivetrain.driveFor(forward, 350, mm); Drivetrain.driveFor(reverse, 150, mm);

16.

If a motor on a VEX V5 Clawbot spins 4 times, this means that the wheel spins..

a)

4 times

b)

2 times

c)

8 times

d)

1 time

17.

How can the speed of a robot be increased?

a)

Push it harder

b)

Specify a higher velocity within the command

c)

Make sure that there is limited friction between the wheels and the surface it is driving on

d)

None of the above

18.

How can I make my robot turn left at a right angle?

a)

Drivetrain.turnFor(left, 180, degrees);

b)

Drivetrain.turnFor(left, 90, degrees);

c)

Drivetrain.turnLeft(90, degrees);

d)

Drivetrain.turnLeft(180, degrees);

19.

A helpful way to plan a program is to write a simple list of steps to code. This process is known as...

a)

Precoding

b)

Simple coding

c)

Pseudocode

d)

Map coding

20.

The wheels on the VEX EDR V5 Clawbot can only turn at a 90-degree angle.

a)

True

b)

False

21.

Rotational movement occurs when an object follows along a ________ path.

a)

curved

b)

bumpy

c)

straight

d)

Narrow

22.

Which of the following describes how far an object can rotate or slide before hitting some sort of limit?

a)

Range of Motion

b)

Stiffness

c)

Flexibility

d)

Tension

23.

When multiple gears are used to transmit motion and force, this is called a...

a)

Wheel chain

b)

Wheel train

c)

Gear chain

d)

Gear train

24.

The speed and torque increases along a geartrain are defined as Mechanical Advantage.

a)

True

b)

False

25.

If I want my robot to carry an object without dropping it, what brake type on the claw should I use?

a)

coast

b)

hold

c)

brake

d)

None of the above

26.

What does SPPA stand for?

a)

Sense, Program, Plan, Algorithm

b)

Sense, Perception, Plan, Act

c)

Sequence, Program, Plan, Act

d)

Sequence, Perception, Plan, Algorithm

27.

Instructions: Answer the following questions concerning interactions with a VEX V5 Robot Brain. 2. Which of the four robot capabilities allows a robot to comprehend where they are relative to the world?

a)

Act

b)

Plan

c)

Perception

d)

Sense

28.

Instructions: Answer the following questions concerning interactions with a VEX V5 Robot Brain. 3. True or False: Robots will do exactly what you tell them to do.

a)

True

b)

False

29.

Instructions: Answer the following questions concerning interactions with a VEX V5 Robot Brain. 4. A while command…

a)

Holds program flow in that place

b)

Needs a true condition to proceed in program flow

c)

Helps a robot make a decision

d)

All of the above

30.

Instructions: Answer the following questions concerning interactions with a VEX V5 Robot Brain. 5. True or False: The Bumper Switch V2 allows the robot to sense light and colors.

a)

True

b)

False

31.

A (a)   expresses a value that can either be true or false.

Choose from the below words

Program value

Common value

Boolean Value

Algebraic value

32.

Consider the following program: armMotor.spinToPosition(180, degrees); Drivetrain.drive(reverse); waitUntil(rearBumper.pressing()); Drivetrain.driveFor(forward, 500, mm, 25, velocityUnits::pct); Brain.Screen.drawCircle(20, 20, 80, green); Which of the following is a Boolean condition from the program?

a)

(reverse)

b)

drive

c)

velocityUnits::pct

d)

(rearBumper.pressing());

33.

What is a condition used for?

a)

It evaluates if a statement is true or false

b)

It ends program flow

c)

It senses physical collisions

d)

It reads multiple lines of code at once

34.

The .drive( ) command allows the robot to…

a)

Drive only 100mm at a time

b)

Drive with a higher, unspecified velocity

c)

Drive and slow down before coming into contact with an upcoming object

d)

Drive an unlimited duration

35.

Identify the error in the following program: # Begin project code def when_started1(): global myVariable, vexcode_brain_precision, vexcode_console_precision drivetrain.drive(REVERSE) while not rearBumper.pressing: wait(5, MSEC) armMotor.spin_to_position(460, DEGREES) clawMotor.spin_to_position(-120, DEGREES) brain.screen.print("end program") when_started1()

a)

There needs to be a pair of parentheses at the end of rearBumper.pressing();

b)

Claw cannot spin in a negative direction

c)

"end program" does not need parentheses around it

d)

"W" in waitUntil needs to be capitalized

36.

Line Tracking Sensors can detect the basic colors of objects and surfaces by…

a)

illuminating a surface with its infrared LED and then measuring how much light is reflected back

b)

using an x-ray to measure the intensity of light

c)

reading the amount of pixels the camera picks up from the reflected light

d)

capturing light through radio frequency and then measuring how much is reflected back

37.

Line Tracking sensor analog values of light surfaces tend to be lower while analog values of dark surfaces tend to be higher.

a)

True

b)

False

38.

A ____________ value is used to separate the range of many values into two categories: Light or Dark.

a)

Algebraic

b)

Variable

c)

Low

d)

Threshold

39.

To find a threshold, one must calculate the __________ of the light and dark value averages.

a)

Sum

b)

Coefficient

c)

Average

d)

Difference

40.

Which of the following "robot questions" best describes the condition in the program?

a)

Is there an object within 75mm?

b)

What distance is the object located in mm?

c)

Is there an object further than 75mm?

d)

How large is the object as seen by the distance sensor?

41.

Programmers use functions which allow you to reuse code so that…

a)

Programs are shorter

b)

Programs are easier to read

c)

Robot behaviors can be easily repeated

d)

All of the above

42.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 2. Functions as abstractions allow the programmer to simplify a complex program by…

a)

Skipping the easy steps

b)

Skipping the harder steps

c)

Ignoring the key information

d)

Focusing on the key information

43.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 3. True or false: Robot behaviors that are repeated throughout a program are good candidates to become a function.

a)

True

b)

False

44.

When a robot reaches a function call in a program, the flow jumps to the first line in the ____________, executes the code, and then back where it left off in the main code.

a)

function definition

b)

int main()

c)

Robot configuration

d)

parentheses

45.

Answer the following questions concerning interactions with a VEX V5 Robot Brain. 5. True or false: Writing a function is similar to writing a variable.

a)

True

b)

False

46.

When naming functions, they must have a ______ and _______.

a)

name, parentheses

b)

value, brackets

c)

type, semicolon

d)

object, colon

47.

Which of the following allows a single function to perform slight differences in behaviors?

a)

Algorithm

b)

Sequence

c)

Parameter

d)

Pseudocode

48.

In programming, parameters…

a)

pass data into functions

b)

is the amount of area inside a shape

c)

is a form of program planning

d)

All of the above

49.

True or false: A parameter can only pass data as an integer.

a)

True

b)

False

50.

Identify the error in the following function: void drawSmileyAt(int x, y){ Brain.Screen.drawCircle(x, y, 40, yellow); Brain.Screen.drawCircle(x-20, y-10, 10, blue); Brain.Screen.drawCircle(x+20, y-10, 10, blue); Brain.Screen.drawRectangle(x-20, y+10, 40, 10, red); }

4 lines
51.

Which of the following is not true about parameter names?

a)

The name should be one word

b)

The name can have numbers

c)

The name can have special characters

d)

The name should represent its purpose

52.

Which of the following is an error in the code?

a)

The second parameter needs a "type"

b)

Curly braces are not needed around the code

c)

There are no errors

53.

A (a)   allows you to continually execute the same code multiple times or loop through a routine until a stopping condition is met.

Choose from the below words

Cycle

Sequence

Command

Loop

54.

When would be an appropriate time to use loops in a program?

a)

If you want a task completed just once

b)

If you want a task to be completed multiple times

c)

If you need to change the velocity for different commands

d)

If you need to change the duration of different commands

55.

A (a)   loop repeats any code indented underneath the number of times specified between the parenthesis.

Choose from the below words

While

Repeat

waitUntil

Conditional

56.

Instructions: Answer the following questions concerning interactions with a VEX V5 Robot Brain. 4. True or false: The Program Flow inside a Repeat Loop runs top-to-bottom the number of times specified between the parenthesis.

a)

True

b)

False

57.

According to the program, how many times will "Finished" be printed on the Robot Brain's screen?

a)

4 times

b)

3 times

c)

2 times

d)

1 time

58.

Which of the following describes Program Flow in a program with a Repeat Loop?

a)

Program Flow is sent back to the beginning of the loop where it will begin running through the commands again inside the loop.

b)

Program Flow is sent back to the beginning of the program where it will begin running through each command again in the program.

c)

Program Flow is sent back to the end of the loop where it will begin running through the commands backwards inside the loop.

d)

Program Flow is sent back to the end of the program where it will begin running through each command backwards in the program.

59.

Which of the following operators means "greater than or equal to"?

a)

>!

b)

>//

c)

<=

d)

=>

60.

In programming, 1 translates as ________, and 0 translates as ________.

a)

false, true

b)

true, false

61.

Which of the following is a false condition?

a)

(2!=1)

b)

(2>1)

c)

(2>=1)

d)

(2==1)

62.

A _______ loop repeats any code indented underneath while the condition between its parentheses is true.

a)

While

b)

Repeat

c)

waitUntil

d)

Operator

63.

Identify the error in the following program: Code 54 # Begin project code 55 brain.timer.clear() 56 for repeat_count in range (brain.timer.time(SECONDS) > 10): 57 drivetrain.set_drive_velocity(30, PERCENT) 58 drivetrain.drive_for(FORWARD, 100, MM) 59 drivetrain.set_turn_velocity(25, PERCENT) 60 drivetrain.turn_for(RIGHT, 90, DEGREES) 61 wait(1, SECONDS)

a)

.clear( ); in line 56 should be capitalized

b)

The operator in line 57 should be changed to "=="

c)

"repeat_count" in line 57 should be changed to "while"

d)

There should be a semicolon at the end of line 57

64.

Program Flow is only ever at one “spot” at a time.

a)

True

b)

False

65.

Conditional loops are a way to repeat something while a certain condition is _________.

a)

True

b)

False

66.

What happens in Program Flow when a condition in a While Loop becomes false?

a)

The robot ends the program immediately.

b)

The robot continues to repeat the loop

c)

The robot skips all of the code indented underneath the While Loop and moves on in the program.

d)

The robot executes the code within the curly braces but skips the rest of the program.

67.

Which of the following explanations describes how the robot executes this program?

a)

The robot executes each command but stops exactly at 10 seconds, no matter where it is in the program

b)

The robot does not stop exactly at 10 seconds because the condition of the While Loop is only checked each time before the sequence of commands is run.

c)

The robot starts executing the commands only after 10 seconds have passed.

d)

The robot's clock is timed in intervals of 10 while executing each command.

68.

If a condition is true in an if-else statement, then…

a)

The robot will run the else branch

b)

The robot will run the if statement

c)

The robot will run both the if statement and the else branch

d)

The robot will not run the if statement or the else branch

69.

A robot will run the code in an else branch only if…

a)

The condition is false

b)

The condition is true

c)

The condition is neither true or false

d)

None of the above

70.

What is the difference between a point turn and a swing turn?

a)

A point turn uses a pivot point while a swing turn uses a center of rotation between the wheels

b)

A point turn powers all wheels at different speeds while a swing turn powers all wheels at the same speed

c)

A point turn uses a center of rotation between the wheels while a swing turn uses a pivot point

d)

A point turn is incapable of making a complete 90-degree turn but a swing turn can

71.

According to the condition, what shape will be displayed on the screen?

a)

Red circle

b)

Blue circle

72.

When a robot is following a dark line, what should happen if the Left Line Tracker senses the line?

a)

The robot should swing turn left

b)

The robot should swing turn right

c)

The robot should make a 90-degree left turn

d)

The robot should make a 90-degree right turn

73.

If the condition of a looped conditional statement is true, the robot will skip the code and move on with the rest of program flow.

a)

True

b)

False

74.

Why is it important to frequently recalculate the threshold value for the Line Trackers?

a)

Because the robot never remembers what the threshold value is

b)

Because the threshold value will never be the same again, even if it’s under the same environmental conditions

c)

Because the threshold changes depending on lighting and the environment

d)

It is not important

75.

If I want my robot to follow a dark line, it would be more efficient to program a single line tracker than all three line trackers.

a)

True

b)

False

76.

While an if statement can stand on its own in a program, an else branch cannot exist in a program without the if statement because it does not have a condition of its own.

a)

True

b)

False

77.

The built-in encoders in the V5 Smart Motors are used primarily to…

a)

track a robot's rotational position and velocity

b)

measure the temperature of the motor

c)

control the speed of the robot

d)

provide wireless communication

78.

What would be the most appropriate sensor to use if a robot's task is to read and then respond to different color traffic lights?

a)

Bumper Switch

b)

Distance Sensor

c)

Robot Brain

d)

Optical Sensor

79.

When will the robot drive forward?

a)

If the robot sees a red object

b)

If the robot sees a blue object

c)

If the robot does not see any object

d)

None of the above