WorksheetsRobotC Basics of Movement
Total questions: 20
Worksheet time: 10mins
Which of these will turn on the left motor of the Squarebot?
motor[leftMotor] = 127;
motor(leftMotor) = 127;
leftMotor(127);
leftMotor[127];
Comments in ROBOTC will be displayed in what color?
Blue
Green
Orange
Red
What programming language does RobotC use?
Centavo
C++
C#
C
What is #pragma?
It shows you da wae.
Hashtag used by those planning to storm Area 51.
A compiler directive that sets up basic input and output configurations for your robot.
A recent topic trending on Twitter.
Text written as part of a program is called _______.
byte
bitmap
function
code
3000 milliseconds is the same as
3 minutes
3 hours
3 seconds
3ml
When the program reaches the ____ symbol in task main(), all motors will stop and the robot program ends.
]
;
{
}
How does RobotC know where one statement ends and the next one begins?
Semicolons after each statement
Curly brackets after each statement
Square brackets after each statement
Spaces or tabs after each statement
Every __________________ ends with a semicolon. It’s like the period at the end of a sentence.
sentence
code
statement
option
Different parts of a program use different punctuation. The motor array uses square brackets and the wait1Msec function uses _____________.
curly brackets
parentheses
square brackets
semi-colon
ROBOTC allows “comments” to be made. It starts with _____
"
(
//
[
Spaces, tabs, and line breaks between statements, curly braces and semicolons are ignored.
True
False
A program is ...
A step-by-step set of directions for the robot to follow.
A step-by-step set of directions for the programmer to follow.
A set of directions, written in sentence and paragraph form.
None of the answers are correct.
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
What will the robot do?
Move forward
Move backward
Nothing/stay still
Spin Left
Spin Right
