Font size
WorksheetsRobotics Final
Total questions: 100
Worksheet time: 50mins
DC batteries require
more power
more maintenance
more space
cooler tempertures
Which of the following conditions is infinite?
(9!=9)
(9=9)
(9>9)
(9==9)
Functions as abstractions allow the programmer to simplify a complex program by
skipping the easy steps.
skipping the harder steps.
ignoring the key information.
focusing on the key information.
Which of the following is a Boolean condition from the program?
(reverse)
.drive
velocityUnits::pct
(rearBumper.pressing());
Usually the same as the number of axes
Degrees of Freedom
Working Envelope
KInematics
Payload
Ambient light does not have an effect when configuring signatures and programming with the Vision Sensor.
True
False
The region of space a robot can reach
Degrees of Freedom
Working Envelope
KInematics
Payload
What is the meaning of a Looped Conditional Statement?
It is a loop embedded into a conditional statement
It is a conditional statement with an infinite condition
It is a loop with an infinite condition
It is a conditional statement embedded into a loop
Line Tracking sensor analog values of light surfaces tend to be lower while analog values of dark surfaces tend to be higher.
True
False
Position of joints in the robot that determines the robot’s possible motions
Degrees of Freedom
Working Envelope
KInematics
Payload
Writing a function is similar to writing a variable.
True
False
How much weight a robot can lift
Degrees of Freedom
Working Envelope
KInematics
Payload
Where is the object's origin?
A
B
C
D
E
How fast the robot can position the end of its arm
Speed
Repeatability
Accuracy
End Effector
In programming, parameters
pass data into functions.
are the amount of area inside a shape.
are a form of program planning.
How closely a robot can reach a commanded position
Speed
Repeatability
Accuracy
End Effector
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.
True
False
How closely a robot can reach a commanded position
Speed
Repeatability
Accuracy
End Effector
The Vision Sensor has a limited __________, which can be seen in the Vision Utility.
field of view
battery life
light source
range of motion
Any of the various tools that can be mounted at the end of a robotic arm and that are used to interact with or manipulate objects
Speed
Repeatability
Accuracy
End Effector
A parameter can only pass data as an integer.
True
False
If the Vision Sensor sees an object and the width and height values of the object are increasing, that means...
the object is moving further away.
the object is getting closer.
the object has disappeared.
the object is not moving.
Create the algorithms and software systems that control autonomous vehicles, process data collected by sensors, and enable efficient communication between different components of the robotic system.
Software Developer
Maritime Robotics Engineer
Maritime Technician
Project Manager
When naming functions, they must have a ______ and _______.
numeral, type
purpose,code
name, numeral
type, name
Which operator means "equals"
= =
! =
>
>=
<
All C++ programs start with...
VEX main (){}
run main (){}
int main (){}
task main () {}
Which operator means "does not equal"
= =
! =
>
>=
<
Which of the following allows a single function to perform slight differences in behaviors?
algorithm
sequence
psuedocode
parameter
Which operator means "is greater than"
= =
! =
>
>=
<
Which operator means "is greater than"
>
>=
< =
<
What is the error in the function?
x and y should be written as whole number values
Curly braces are not needed around the code
There are no errors
The second parameter needs a "type"
Which operator means "is greater than or equal to"
>
>=
< =
<
Which operator means "is less than or equal to"
>
>=
< =
<
Parameters are variables within the _____ of functions.
reference
call
parentheses
A _______ loop repeats any code between its curly braces while the condition between its parentheses is true.
while
repeat
waitUntil
operator
Which operator means "is less than"
>
>=
< =
<
Loops can make writing programs easier because it simplifies a repetitive task.
True
False
Which of the following explanations describes how the robot executes this program?
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.
The robot executes each command but stops exactly at 10 seconds, no matter where it is in the program
The robot starts executing the commands only after 10 seconds have passed.
The robot's clock is timed in intervals of 10 while executing each command.
Work on designing, developing, and maintaining autonomous underwater vehicles (AUVs), remotely operated vehicles (ROVs), or other robotic systems used in maritime applications.
Software Developer
Maritime Robotics Engineer
Maritime Technician
Project Manager
If a condition is true in an if-else statement, the
the robot will run the else branch.
the robot will run both the if statement and the else branch.
the robot will not run the if statement or the else branch.
the robot will run the if statement.
Identify the error in the following program:
.reset( ); in line 5 should be capitalized
There should be a semicolon at the end of line 6
"repeat" in line 6 should be changed to "while"
The operator in line 6 should be changed to "=="
Responsible for the installation, maintenance, and repair of robotic systems used in maritime operations.
Software Developer
Maritime Robotics Engineer
Maritime Technician
Project Manager
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?
bumper switch
distance sensor
robot brain
optical sensor
Program Flow is only ever at one spot at a time.
True
False
Oversee the planning, coordination, and implementation of robotic systems in various applications.
Software Developer
Maritime Robotics Engineer
Maritime Technician
Project Manager
What happens in Program Flow when a condition in a While Loop becomes false?
The robot ends the program immediately.
The robot continues to repeat the loop.
The robot executes the code within the curly braces but skips the rest of the program.
The robot skips all of the code between the curly braces and moves on in the program.
What is an example of an integer (int)?
Whole Numbers = -321, 0 , 548
Decimal Numbers = -22.7, 0.0, 3.14
Single Characters using single quotes = 'a' , 'x', '7'
Multiple Characters using double quotes = std::string newstring;
True/False values = true, false, 0, 1
What is an example of a string (string)?
Whole Numbers = -321, 0 , 548
Decimal Numbers = -22.7, 0.0, 3.14
Single Characters using single quotes = 'a' , 'x', '7'
Multiple Characters using double quotes = std::string newstring;
True/False values = true, false, 0, 1
When a robot reaches a function call in a program, the flow jumps to the first line in the _____________, executes the code within curly braces, and then back where it left off in int main.
function definition
int main (){}
robot configuration
parentheses
What is an example of a Bool (bool)?
Whole Numbers = -321, 0 , 548
Decimal Numbers = -22.7, 0.0, 3.14
Single Characters using single quotes = 'a' , 'x', '7'
Multiple Characters using double quotes = std::string newstring;
True/False values = true, false, 0, 1
A robot will react differently to a program with functions compared to the same program without functions.
True
False
Which of the following punctuation marks represents the end of a single command in C++?
semicolon ;
colon :
comma ,
period .
Which of the following is not true about parameter names?
The name should be one word.
The name can have numbers.
The name can have special characters.
The name should represent its purpose.
What is an example of a Float (float)?
Whole Numbers = -321, 0 , 548
Decimal Numbers = -22.7, 0.0, 3.14
Single Characters using single quotes = 'a' , 'x', '7'
Multiple Characters using double quotes = std::string newstring;
True/False values = true, false, 0, 1
What is an example of a Character (char)?
Whole Numbers = -321, 0 , 548
Decimal Numbers = -22.7, 0.0, 3.14
Single Characters using single quotes = 'a' , 'x', '7'
Multiple Characters using double quotes = std::string newstring;
True/False values = true, false, 0, 1
Which of these choices is not one of the four key pieces of information Vision Systems use to describe rectangle "blob" data?
The X-coordinate of the center of the rectangle
The height of the rectangle (in pixels)
The Z-coordinate of the center of the rectangle
The width of the rectangle (in pixels)
They are capable of performing tasks that require a high degree of precision and dexterity, and can reduce the risk of complications and human error.
Medical Robots
Service Robots
Space Robots
Manufacturing Robots
When will the robot drive forward?
If the robot sees a red object
If the robot sees a blue object
If the robot does not see any object
They are designed to interact with humans and to perform tasks that are repetitive, dangerous, or inconvenient
Medical Robots
Service Robots
Space Robots
Manufacturing Robots
Conditional loops are way to repeat something while a certain condition is ________.
True
False
They are capable of operating in zero-gravity environments and performing tasks that are too difficult or dangerous for humans.
Medical Robots
Service Robots
Space Robots
Manufacturing Robots
They are capable of handling a wide range of materials and processes, and can improve efficiency, consistency, and safety in manufacturing operations.
Medical Robots
Service Robots
Space Robots
Manufacturing Robots
When working with a robot's camera image, a "blob" is a...
a spill on a surface that hardens and becomes gooey.
a group of colored pixels of varying colors.
a group of similarly-colored pixels that aren't touching each other.
a group of similarly-colored pixels touching each other.
Function names must be all one word, made up of letters, numbers and underscores, should be descriptive of the performed behavior, and NOT a word already reserved by VEX C++.
True
False
How many times are if-else statements executed?
once
twice
3 times
infinite times
They are capable of improving efficiency, reducing labor costs, and optimizing crop yields.
Agriculture Robots
Military Robots
Education Robots
They are capable of operating in hazardous environments and performing tasks that are too dangerous for humans.
Agriculture Robots
Military Robots
Education Robots
What does the number 80 represent?
x-position
y-position
circumference
radius
They are designed to be user-friendly and interactive, and can help students develop skills in problem-solving, creativity, and critical thinking.
Agriculture Robots
Military Robots
Education Robots
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.
True
False
How does an autonomous tractor know when there is an obstacle in front of it?
A human tells it about the obstacle.
It doesn't know about the obstacle.
It uses sensors to detect it.
It knows only when it has caused damage to the tractor
Achieve motion in two perpendicular planes, such as up-down and left-right
2 DoF
3 DoF
6 DoF
7 DoF
Can move in three-dimensional space, allowing for more complex motions like reaching, lifting, and rotating objects.
2 DoF
3 DoF
6 DoF
7 DoF
Why is it important to frequently recalculate the threshold value for the Line Trackers?
The robot never remembers what the threshold value is.
The threshold changes depending on lighting and the environment.
The threshold value will never be the same again, even if it’s under the same environmental conditions.
It is not important.
Most common classification for industrial robotic arms
2 DoF
3 DoF
6 DoF
7 DoF
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.
True
False
When a robot is following a dark line, what should happen if the Left Line Tracker senses the line?
The robot should swing turn left.
The robot should swing turn right.
The robot should make a 90-degreee left turn.
The robot should make a 90-degreee right turn.
Provide enhanced flexibility and dexterity, allowing for more complex and precise movements
2 DoF
3 DoF
6 DoF
7 DoF
According to the condition, what shape will be displayed on the screen?
red circle
blue circle
both a red and blue circle
neither a red nor a blue circle
What is the difference between a point turn and a swing turn?
A point turn uses a center of rotation between the wheels while a swing turn uses a pivot point.
A point turn is incapable of making a complete 90-degree turn but a swing turn can.
A point turn powers all wheels at different speeds while a swing turn powers all wheels at the same speed.
A point turn uses a pivot point while a swing turn uses a center of rotation between the wheels.
A robot will run the code in an else branch only if
the condition is false.
the condition is true.
the condition is neither true nor false.
Which of the following is false condition?
(2!=1)
(2>1)
(2>=1)
(2==1)
In programming, 1 translates as ________, and 0 translates as _________.
false, true
true, false
A robot will not stop in the middle of a program.
True
False
A robot is able to read multiple lines of code at the same time.
True
False
What will the robot do?
Nothing
Complete the loop once.
Run the loop as long as the arm bumper is pressed.
Which of the following describes Program Flow in a program with a Repeat Loop?
Program Flow is sent back to the end of the program where it will begin running through each command backwards in the program.
Program Flow is sent back to the end of the loop where it will begin running through the commands backwards inside the loop.
Program Flow is sent back to the beginning of the program where it will begin running through each command again in the program.
Program Flow is sent back to the beginning of the loop where it will begin running through the commands again inside the loop.
According to the program, how many times will "Finished" be printed on the Robot Brain's screen?
1
2
3
4
Function definitions occur _____ int main ().
before
after
How do you start this loop?
It starts automatically.
It starts after 3 seconds.
It starts when you press the rear Bumper switch.
It doesn't start.
The Program Flow inside a Repeat Loop runs top-to-bottom the number of times specified between the parenthesis.
True
False
What error is shown in the sequence below?
"PenColor" should be lower case
There should be a period at the end of each command instead of a semicolon
"screen" in the first command should be uppercase
There are too many parameter values for the rectangles
A ________ loop repeats any code between its curly braces the number of times specified between the parenthesis.
while
waitUntil
conditional
repeat
When would be an appropriate time to use loops in a program?
If you want a task completed just once.
If you want a task completed multiple times.
If you need to change the velocity for different commands
If you need to change the duration of different commands
A _____ allows you to continually execute the same code multiple times or loop through a routine until a stopping condition is met.
cycle
sequence
command
loop
All function definitions start with
void
int
bool
vexcodeInit
Choose the function definition
if (ClawOptical.isNearObject() && ClawOptical.color() == red) { Brain.Screen.print("red"); } else { Brain.Screen.print("Not red"); }
int main() {
void inspectSite(){ Brain.Screen.drawCircle(80, 70, 60, blue); wait(2, seconds); Brain.Screen.drawCircle(80, 70, 60, yellow); wait(2, seconds); Brain.Screen.clearScreen();
int main() {
Drivetrain.driveFor(forward, 100, mm, 30, velocityUnits::pct); Drivetrain.turnFor(right, 90, degrees, 25, velocityUnits::pct); }
Robot behaviors that are repeated throughout a program are good candidates to become a function.
True
False
Robots do exactly what you tell them.
True
False
The wheels on the VEX V5 Clawbot can only turn at a 90-degree angle.
True
False
