WorksheetsROBOTC Rules/Syntax
Total questions: 17
Worksheet time: 9mins
What does every program have to have?
task main( ) and a set of { }
Task main and ( )
Main task and { }
task main and semicolons
Simple ROBOTC commands (statement) always end with a
}
)
semi-colon
]
Control structures, just like task main, have a set of curly braces/brackets defining their
task
beginning and end { }
command
range
The most important thing to do when troubleshooting is to
make sure each line has a ;
make sure all words start with capitals
check that all the comments are correct
Check the syntax
When you start a new program it is good practice to
Name your program using File/Save As
Configure Motor and Sensor Setup
Save your file in the proper directory
All of these statements are true
Which of the following statements are true about comments?
Comments are used by programmers to make notes in their codes
The compiler and robot both ignore comments when running the program
It cuts down on potential confusion later on when someone else may need to read the code
All of these statements are true
________ is used to temporarily "disable” code in a program without deleting it.
commenting out
deletion
brackets
highlighting
Simple behaviors are single statements like
I don't like ice-cream
move forward one rotation
turn right when detecting color red
stop when detecting a wall
Which command makes the robot moving the fastest?
forward(4, rotations, 20);
forward(1, rotation, 80);
forward 2, seconds, 90);
forward( 8 rotations, 15);
Which command has a syntax?
forward(3, rotations, 110);
forward(5, rotations, 50);
forward(8, seconds, 30);
forward(7, seconds, 80);
The EV3 configuration sets the the motor and sensors locations in this way:
Sensor Ports: S1, S2, S3, S4
Motor Ports: S1, S2, S3, S4
Motor Ports: A, B, C, D
Sensor Ports: S1, S2, S3
The EV3 motor ports contain the following:
A=Arm Motor
B=Left Motor
C=Right Motor
S1=arm Motor
S2=Left Motor
S3=Right Motor
S1=Left Arm
S2=Left Motor
S3=Right Motor
S4=right Arm
None of these options
When we do Standard Motor Configuration, we choose
EV2 Robot
Vex3
EV3 Rembot
Buggybot
In the Robot/Compiler Target we choose between:
EV3 and Vex
Text-based or Graphical
Physical Robot and Virtual Worlds
Kinetic and EV3 Robot
What are the commands in Simple Behaviors?
forward
turnRight
TurnLeft
backwards
Which of the following are complex behaviors
Waking up
Turn left
Go backwards
Coding to complete a maze challenge
Always begin by _______ your program
installing the firmware for
saving
ignoring
cancelling
