NEW
Font size
WorksheetsPipeline Explorer
Total questions: 20
Worksheet time: 9mins
True or False:
Small robots can help fix damaged pipes with less disruption by navigating the existing pipes and eliminating unnecessary excavation.
True
False
True or False: Greyscale mode tells the color sensor to look for a specific color instead of the reflectivity of a surface.
True
False
Int is an example of a data type for a variable. What does "int" stands for?
initiate
integer
integral
internal
Which of the following in not an example of a number that can be stored as an integer variable?
28
.28
-28
280
True or False: A single equal sign (=) is used in ROBOTC to assign one value to another.
True
False
In the "Store Distance" program, the value 493 was assigned to the variable encoderLine 1.
What does the number 493 represent?
The number of centimeters the robot traveled
The number of millimeters the robot traveled
The amount of encoder counts of the left wheel of the robot
The combined encoder counts of both wheels of the robot
These allow the programmer to define a set of code one and then run that code multiple times
Encoders
Functions
Variables
Commands
True or False: Functions force the user to write longer, less efficient programs.
True
False
True or False: Functions cannot be defined in Task Main or another function
True
False
True or False: Functions with the keyword "void" return a value
True
False
Which of the following is not an example of a naming rule for a function?
Must be all one word
Made up of letters, numbers and underscores
Names must begin with a capital letter
Cannot be the same name as a ROBOTC reserved word
Which of the following is the Boolean operator for not equal to?
!=
= =
==
++
True or False: Diameter is a straight line that touches each side of a circle while passing through the middle.
True
False
By multiplying the Diameter of a wheel by 3.14, this detemines
The wheel's width
The wheel's radius
The wheel's circumference
The wheel's pi meter
True or False: Each degree that the robot's wheel travels is equal to 3 encoder counts.
True
False
What is the equation to determine the distance the robot has moved?
3.14 * Circumference
Circumference * Rotations
3.14 * Rotations
Rotations * Diameter
True or False: ROBOTC follows order of operation rules when performing math calculations.
True
False
True or False
A function cannot return a float variable type.
True
False
True or False: Functions follow the same naming rules as variables.
True
False
The ROBOTC reserved word "return" does which of the following?
Allows more than one function to be called in the task main
Allows the variable to store large numbers
Allows the function to return the calculated result of the function
Allows the function to store whole number data types
