NEW
Font size
WorksheetsCoding and Computational Thinking With VEX Certification
Total questions: 77
Worksheet time: 37mins
The built-in encoders in the V5 Smart Motors are used primarily to.
Interact with the robot
Communicate with the robot
Control the robot
All of the above
How does the screen on the Robot Brain act as an input?
It can detect touch
It can display shapes
It can display text
All of the above
All C++ programs start with...
VEX main ( ) { }
run main ( ) { }
int main ( ) { }
task main ( ) { }
Which of the following punctuation marks represents the end of a single command?
Semicolon
Colon
Comma
Period
A _______ is a series of commands that are completed in a specific order.
Parameter
Sequence
Command
Program Flow
True or false: A robot completes tasks in a sequence in a random order.
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
Program Flow is referred to as...
the way a robot executes a program from bottom-to-top.
the way a robot executes a program from top-to-bottom.
the way a robot executes a program by alphabetical order.
the way a robot executes a program in a random order.
Consider the code below to answer the following question.
How will this code be displayed on the Robot Brain screen?
There will be two circles of the same size and same color next to each other
There will be two circles of the same size and same color overlapping each other
The circles are the same size and same location. The yellow circle is not visible because the purple circle is on top of it.
The circles are the same size and same location. The purple circle is not visible because the yellow circle is on top of it.
True or False: There are required parameters to draw a circle: x-position, y-position, and radius.
True
False
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 ________________.
Drivetrain
Arm
Claw
Sensor
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 ________________.
Linear acceleration
Linear movement
A to B movement
Forward movement
The robotic subsystem that provides the ability to grab objects is the...
Drivetrain
Arm
Claw
Sensor
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.
True
False
I want my robot to drive forward for 350mm and then reverse back to where it started. What would my program look like?
Drivetrain.driveFor(forward, 350, mm);
Drivetrain.driveFor(reverse, 350, mm);
Drivetrain.driveFor(forward, 350, mm);
Drivetrain.driveRev(reverse, 350, mm);
Drivetrain(driveForward, 350, mm).
Drivetrain(driveReverse, 350, mm).
Drivetrain.driveFor(forward, 350, mm);
Drivetrain.driveFor(reverse, 150, mm);
If a motor on a VEX V5 Clawbot spins 4 times, this means that the wheel spins..
2 times
3 times
4 times
5 times
How can the speed of a robot be increased?
Push it harder
Specify a higher velocity within the command
Make sure that there is limited friction between the wheels and the surface it is driving on
None of the above
How can I make my robot turn left at a right angle?
Drivetrain.turnFor(left, 180, degrees);
Drivetrain.turnFor(left, 90, degrees);
Drivetrain.turnLeft(90, degrees);
Drivetrain.turnLeft(180, degrees);
A helpful way to plan a program is to write a simple list of steps to code. This process is known as...
Precoding
Simple coding
Pseudocode
Map coding
True or False: The wheels on the VEX EDR V5 Clawbot can only turn at a 90-degree angle.
True
False
Rotational movement occurs when an object follows along a ________ path.
curved
bumpy
straight
narrow
Which of the following describes how far an object can rotate or slide before hitting some sort of limit?
Range of Motion
Range of Flexibility
Scope of Movement
Scope of Motion
When multiple gears are used to transmit motion and force, this is called a...
Wheel chain
Wheel train
Gear chain
Gear train
True or False: The speed and torque increases along a geartrain are defined as Mechanical Advantage.
True
False
If I want my robot to carry an object without dropping it, what brake type on the claw should I use?
coast
hold
brake
None of the above
What does SPPA stand for?
Sense, Program, Plan, Algorithm
Sense, Perception, Plan, Act
Sequence, Program, Plan, Act
Sequence, Perception, Plan, Algorithm
Which of the four robot capabilities allows a robot to comprehend where they are relative to the world?
Act
Plan
Perception
Sense
True or False: Robots will do exactly what you tell them to do.
True
False
A waitUntil command...
Holds program flow in that place
Needs a true condition to proceed in program flow
Helps a robot make a decision
All of the above
True or False: The Bumper Switch V2 allows the robot to sense light and colors
True
False
A _________, expresses a value that can either be true or false.
Program value
Common value
Boolean Value
Algebraic value
Which of the following is a Boolean condition from the program?
(reverse)
.drive
velocityUnits::pct
(rearBumper.pressing());
What is a condition used for?
It evaluates if a statement is true or false
It ends program flow
It senses physical collisions
It reads multiple lines of code at once
The .drive( ) command allows the robot to…
Drive only 100mm at a time
Drive with a higher, unspecified velocity
Drive and slow down before coming into contact with an upcoming object
Drive an unlimited duration
Identify the error in the following program:
There needs to be a pair of parentheses around (rearBumper.pressing());
Claw cannot spin in a negative direction
"end program" does not need parentheses around it
"W" in waitUntil needs to be capitalized
Line Tracking Sensors can detect the basic colors of objects and surfaces by…
illuminating a surface with its infrared LED and then
measuring how much light is reflected back
using an x-ray to measure the intensity of light
reading the amount of pixels the camera picks up from the reflected light
capturing light through radio frequency and then measuring how much is reflected back
True or false: Line Tracking sensor analog values of light surfaces tend to be lower while analog values of dark surfaces tend to be higher.
True
False
A _____________ value is used to separate the range of many values into two categories: Light or Dark.
Algebraic
Variable
Low
Threshold
To find a threshold, one must calculate the __________ of the light and dark value averages.
Sum
Coefficient
Average
Difference
Programmers use functions which allow you to reuse code so that...
Programs are shorter
Programs are easier to read
Robot behaviors can be easily repeated
All of the above
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
True or false: Robot behaviors that are repeated throughout a program are good candidates to become a function.
true
false
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
True or false: Writing a function is similar to writing a variable.
True
False
When naming functions, they must have a ______ and _______.
numeral, type
type, name
purpose, code
name, numeral
Which of the following allows a single function to perform slight differences in behaviors?
Algorithm
Sequence
Parameter
Pseudocode
In programming, parameters…
pass data into functions
is the amount of area inside a shape
is a form of program planning
All of the above
True or false: A parameter can only pass data as an integer.
True
False
Identify the error in the following function:
x and y should be written as whole number values
The second parameter needs a "type"
Curly braces are not needed around the code
There are no errors
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
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 to be completed multiple times
If you need to change the velocity for different commands
If you need to change the duration of different commands
A ________ loop repeats any code between its curly braces the number of times specified between the parenthesis.
While
Repeat
waitUntil
Conditional
True or false: The Program Flow inside a Repeat Loop runs top-to-bottom the number of times specified between the parenthesis.
True
False
According to the program, how many times will "Finished" be printed on the Robot Brain's screen?
1 time
2 times
3 times
4 times
Which of the following describes Program Flow in a program with a Repeat Loop?
Program Flow is sent back to the beginning of the loop where it will begin running through the commands again 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 end of the loop where it will begin running through the commands backwards inside the loop.
Program Flow is sent back to the end of the program where it will begin running through each command backwards in the program.
Which of the following operators means "greater than or equal to"?
>!
>//
>=
=>
In programming, 1 translates as ________, and 0 translates as _________.
false, true
true, false
Which of the following is a false condition?
(2!=1)
(2>1)
(2>=1)
(2==1)
A _______ loop repeats any code between its curly braces while the condition between its parentheses is true.
While
Repeat
waitUntil
Operator
Identify the error in the following program:
.reset( ); in line 5 should be capitalized
The operator in line 6 should be changed to "=="
"repeat" in line 6 should be changed to "while"
There should be a semicolon at the end of line 6
True or False: Program Flow is only ever at one “spot” at a time.
True
False
Conditional loops are way to repeat something while a certain condition is ________.
True
False
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 skips all of the code between the curly braces and moves on in the program.
The robot executes the code within the curly braces but skips the rest of the program.
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
If a condition is true in an if-else statement, then…
The robot will run the else branch
The robot will run the if statement
The robot will run both the if statement and the else branch
The robot will not run the if statement or the else branch
Which of the following explanations describes how the robot executes this program?
The robot executes each command but stops exactly at 10 seconds, no matter where it is in the 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 starts executing the commands only after 10 seconds have passed.
The robot's clock is timed in intervals of 10 while executing each command.
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 or false
None of the above
What is the difference between a point turn and a swing turn?
A point turn uses a pivot point while a swing turn uses a center of rotation between the wheels
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 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
According to the condition, what shape will be displayed on the screen?
Red circle
Blue circle
Both the red and blue circle
Neither the red or blue circle
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-degree left turn
The robot should make a 90-degree right turn
True or false: 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
Why is it important to frequently recalculate the threshold value for the Line Trackers?
Because the robot never remembers what the threshold value is
Because the threshold value will never be the same again, even if it’s under the same environmental conditions
Because the threshold changes depending on lighting and the environment
It is not important
True or false: 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
True or false: 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
The built-in encoders in the V5 Smart Motors are used primarily to...
track a robot's rotational position and velocity
weigh the wheels on the robot
calculate the circumference of each wheel
sense for obstacles
Which is not a valid character in C++?
char
string
flow
int
Consider the sequence: 80 indicates what for the circle?
X-position
Y-position
Circumference
Radius
