NEW
Font size
WorksheetsPart 4 - Program Control
Total questions: 24
Worksheet time: 8mins
What is robot?
a programmable mechanical device that can perform tasks
allows the machine to perform tasks without human guidance
the science behind the design, building and use of robots
A program is:
A logical step-by-step set directions for the robot to follow
A set of directions, in paragraph form, that a robot can follow
A logical set of directions for the programmer to follow
None of the above
Which of the following is the definition of a FLOWCHART?
a step-by-step procedure for solving a problem or accomplishing some end, especially by a computer
a diagram that shows step-by-step progress through a procedure using connecting lines and a set of conventional symbols
the return to the input of a part of the output of a machine, system, or process
the place at which independent and often unrelated systems meet and act on or communicate with each other
An IF statement is triggered by....
a condition
a loop
a comment
a timer
The “while” command:
Are commands that allow you to create behaviors where the robot acts until a certain event
Are commands that waits for an elapsed amount of time in seconds or milliseconds
Allows a section of code to be repeated as long as a certain condition remains true
Is not a command option in ROBOTC
The “until” command:
Commands that allow you to create behaviors where the robot acts until a certain event
Commands that waits for an elapsed amount of time in seconds or milliseconds
Allows a section of code to be repeated as long as a certain condition remains true
is not a command option in ROBOTC
An example of a scenario in which you might want to use an “if” statement is
when programming an automatic light to turn on when it gets dark outside
when programming a motor to run when using a switch
when programming a robot to detect when a object is more the 25 cm away
all of the above
The shape shown here represents what part of a flowchart
Start/End
Process
Input/Output
Decision
The shape shown here represents what part of a flowchart
Start/End
Process
Input/Output
Decision
The shape shown here represents what part of a flowchart
Process
Input/Output
Decision
Display
The shape shown here represents what part of a flowchart
Process
Input/Output
Decision
Display
In mobile robotics, "CW" is used as an abbreviation for:
clock wait
clockwise
counter-clockwise
constant wave
In mobile robotics, "CCW" is used as an abbreviation for:
counter clock wait
going clockwise
counter clockwise
carry constant wave
In some Robotics applications, we need a robot can detect reflectivity of floor surfaces (lighter/darker). Help the programmer to choose the appropriate sensor from the following:
Flashlight
Light Sensor
Distance Sensor
Line Tracking Sensor
In some Robotics applications, we need a robot to detect when it is near an object. Help the programmer to choose
the appropriate sensor from the following:
Bumper Sensor
Limit Switch
Potentiometer
Distance Sensor
Boolean logic evaluates commands to:
True or False
Yes or No
Greater> or Less<
all of the above
What type of code is pictured
Pragma Code
Pseudocode
Basic Code
Task Main
___________________ is a readable description of what a computer program must do.
Pseudocode
Debugger
Boolean Statement
While Loop
A ___________________ allows a section of code to be repeated as long as a certain condition remains true
Timers
Comments
If-else Statement
While Loop
A ____________________ is anything your robot does.
Behavior
Bounce
Condition
Pseudocode
The ___________________is used to confirm that all inputs and outputs are working as
expected.
Condition
Debugger
Behavior
While Looop
___________________If the results are true, the THEN instructions are taken; if not, the ELSE instructions are taken.
Timers
While Loop
If-else Statement
Debugger
___________________is a data type, having two values (true or false, yes or no), intended to represent the truth values of logic.
Pseudocode
Boolean Statement
While Loop
Bounce
___________________ are used to instruct on a decision and perform different features depending on what a programmer has specified.
Condition
Timers
Bounce
Comments
