NEW
Font size
WorksheetsRobotC SLT Pretest Quiz
Total questions: 50
Worksheet time: 28mins
Value of touch sensor when pressed
0
1
63
127
What programming language does RobotC use?
CC
C++
C#
C
What is the purpose of the line 'task main() followed by { }'?
It's a comment used to define the main scope
Sets up multitasking
Sets up a program's main task only
Sets up a program's main task and scope
What is the purpose of the 'while(true)' statement?
creates a finite loop to check for changes in your NXT components a number of times
creates an infinite loop to check for mistakes in the program functions
creates a finite loop to check for mistakes in the program functions
creates an infinite loop to continually check for changes in your NXT components
Which one is a correct code of motor?
motor[motorC] = 25;
motor[motorC] = 25
motor[left] = 25;
motor[left] = 25
Where do you start writing your code?
1
2
3
4
How will behave the robot within these codes below?
motor[motorC] = 0;
motor[motorB] = 55;
Move Forward
Move Backward
Turn Right
Turn Left
How will behave the robot within these codes below?
motor[motorC] = 100;
motor[motorB] = 0;
Move Forward
Move Backward
Turn Right
Turn Left
How will behave the robot within these codes below?
motor[motorC] = 100;
motor[motorB] =100;
Move Forward
Move Backward
Turn Right
Turn Left
A simple statement is:
A statement that never uses words with more than two syllables
A line of code, irrespective of spelling
A line of code irrespective of punctuation
A line of code including all the appropriate words, numbers, and punctuation.
What does == mean?
Is equal to
is not equal to
greater than
less than
What does != mean
is equal to
is not equal to
greater than
less than
What does < mean
is equal to
is not equal to
greater than
less than
What does <= mean
Is equal to
is not equal to
is less than or equal to
is greater than or equal to
What does > mean?
is equal to
is not equal to
is less than
is greater than
What does >= mean?
Is equal to
is not equal to
is greater than or equal to
is less than or equal to
What does && mean?
Is equal to
Next
OR
And
What does || mean?
A Wall
A Path
And
Or
What does the following line of code do?
int speed;
Nothing
Sets the speed
Assign the variable speed as an integer
not allowed in Robotc
Of the options available, to get the robot to move in a circle, you would:
Use the MotorCirlce command
Turn on only one motor
Assure that the Wait1Msec command was at least 3000
Make sure that the motor is connected to Port 1
If you wanted your robot to move for 5 seconds you would use the _____ command
wait1sec (5000);
wait1sec (5);
wait1msec (5);
wait1msec (5000);
When a piece of code runs unintentionally forever it is know as
An infinite loop
A long loop
A broken loop
A for loop
Assuming the Motors and Sensors Setup has been properly configured, which robot behaviors will this piece of code cause the robot to perform?
Pivot Turn Left / Pivot Turn Right
Forward / Reverse
Swing Turn Left / Swing Turn Right
Value of touch sensor when not pressed
0
1
63
127
Assuming the Motors and Sensors Setup has been properly configured, which robot behaviors will this piece of code cause the robot to perform?
Pivot Turn Left / Pivot Turn Right
Forward / Reverse
Swing Turn Left / Swing Turn Right
Assuming the Motors and Sensors Setup has been properly configured, which robot behaviors will this piece of code cause the robot to perform?
Pivot Turn Left / Pivot Turn Right
Forward until 2107 degrees on rotation sensor
Swing Turn Left / Swing Turn Right
True or False: If I change this program's power, I must also change its wait time?
True
False
True or False: This program does not require a wait1Msec() command.
True
False
Using a standard tire, how many degrees should be programmed for the robot to travel 100 cm?
1300
360
2107
2046
Using a standard tire, how many degrees should be programmed for the robot to travel 18 cm?
400
368
217
246
Using a standard tire, how many degrees should be programmed for the robot to travel 75 cm?
1400
3268
1534
2496
