wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ROBOTC Natural Language Quiz

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

Which command is used to start a motor at a specific speed in ROBOTC Natural Language?

a)

setServo();

b)

startMotor();

c)

stopMotor();

d)

wait();

2.

What is the default time for the 'wait' command in ROBOTC Natural Language?

a)

1.0 seconds

b)

0.5 seconds

c)

1000 milliseconds

d)

2.7 seconds

3.

Which command waits for the Touch Sensor to be pressed in ROBOTC Natural Language?

a)

untilTouch();

b)

untilRelease();

c)

untilBump();

d)

untilButtonPress();

4.

What does the command `untilPotentiometerGreaterThan()` do in a VEX Cortex program?

a)

Waits for the potentiometer to read a value less than a set position.

b)

Turns on an LED at a specified port.

c)

Waits for the potentiometer to read a value greater than a set position.

d)

Starts a motor at a specified speed.

5.

Which command is used to turn an LED on in a specified digital port?

a)

turnLEDOff()

b)

turnLEDOn()

c)

turnFlashlightOn()

d)

stopMotor()

6.

Which command is used to wait for a specified number of encoder counts?

a)

untilRotations()

b)

untilEncoderCounts()

c)

untilLight()

d)

untilSonarLessThan()

7.

What is the purpose of the `robotType()` command?

a)

To start a motor at a specified speed.

b)

To choose which robot you are using.

c)

To turn a flashlight on at a specified brightness.

d)

To wait for a potentiometer to reach a set position.

8.

What is the default speed for the robot when driving straight forward using the ROBOTC Natural Language?

a)

50

b)

75

c)

95

d)

100

9.

Which command is used to make the robot perform a point turn?

a)

forward();

b)

backward();

c)

pointTurn();

d)

swingTurn();

10.

What is the default direction and speed for a swing turn?

a)

Left, 50

b)

Right, 95

c)

Left, 95

d)

Right, 50

11.

Which command is used to make the robot track a dark line for a specified time?

a)

lineTrackForRotations();

b)

moveStraightForTime();

c)

lineTrackForTime();

d)

tankControl();

12.

What is the purpose of the tankControl() command?

a)

To control the robot with a single joystick

b)

To make the robot move straight

c)

To control the robot with two joysticks

d)

To make the robot stop

13.

Which command is written correctly?

a)

Move

b)

move

c)

Move();

d)

move();

14.

Which command is used to stop all motors in ROBOTC Natural Language?

a)

stopAllMotors();

b)

haltMotors();

c)

ceaseMotors();

d)

pauseMotors();

15.

What is the purpose of the `clearTimer()` command in ROBOTC?

a)

To reset the timer to zero.

b)

To start a new timer.

c)

To stop the current timer.

d)

To display the timer value.

16.

Which command is used to make the robot wait until a light sensor detects a certain brightness?

a)

untilBrightness();

b)

untilLight();

c)

waitForLight();

d)

detectLight();

17.

Which command is used to reset the encoder count in ROBOTC Natural Language?

a)

resetEncoder();

b)

clearEncoder();

c)

zeroEncoder();

d)

initializeEncoder();

18.

What is the purpose of the `setMotorTarget()` command in ROBOTC?

a)

To set a motor to a specific speed indefinitely.

b)

To set a motor to a specific position.

c)

To stop a motor immediately.

d)

To reverse the direction of a motor.

19.

Which command is used to make the robot wait until a sonar sensor detects an object within a certain distance?

a)

untilSonarLessThan();

b)

untilDistance();

c)

waitForSonar();

d)

detectSonar();

20.

What is the function of the `wait1Msec()` command in ROBOTC?

a)

To pause the program for a specified number of milliseconds.

b)

To wait for a sensor to be activated.

c)

To stop all motors immediately.

d)

To reset the robot's position.

21.

Which command is used to make the robot move in a square pattern?

a)

moveSquare();

b)

driveSquare();

c)

squarePattern();

d)

moveInSquare();

22.

What does the `setServoPosition()` command do in ROBOTC?

a)

Sets the servo to a specific angle.

b)

Starts the servo at a specific speed.

c)

Stops the servo immediately.

d)

Reverses the servo direction.

23.

What is the purpose of the `moveStraightForRotations()` command in ROBOTC?

a)

To move the robot straight for a specified number of rotations.

b)

To rotate the robot in place.

c)

To move the robot in a zigzag pattern.

d)

To stop the robot after a certain time.

24.

Which command is used to make the robot wait until a button is pressed?

a)

waitForButtonPress();

b)

untilButtonPress();

c)

buttonWait();

d)

pressButton();

25.

What does the `setMotorSpeed()` command do in ROBOTC?

a)

Sets the motor to a specific speed.

b)

Stops the motor immediately.

c)

Reverses the motor direction.

d)

Starts the motor at maximum speed.

26.

What is the purpose of the `stopMotor()` command in ROBOTC?

a)

To stop a motor immediately.

b)

To start a motor at a specific speed.

c)

To reverse the direction of a motor.

d)

To set a motor to a specific position.

27.

Which command is used to make the robot follow a line using a light sensor?

a)

lineFollow();

b)

trackLine();

c)

followLine();

d)

lineTrack();

28.

What does the `setLEDColor()` command do in ROBOTC?

a)

Sets the LED to a specific color.

b)

Turns off the LED.

c)

Blinks the LED at a set interval.

d)

Increases the LED brightness.

29.

Which command is used to make the robot wait until a specific time has passed?

a)

waitForTime();

b)

untilTime();

c)

timeWait();

d)

waitUntil();

30.

What is the purpose of the `setMotorReversed()` command in ROBOTC?

a)

To reverse the direction of a motor.

b)

To set a motor to a specific speed.

c)

To stop a motor immediately.

d)

To start a motor at maximum speed.

31.

Which command is used to make the robot wait until a touch sensor is released?

a)

untilTouchRelease();

b)

waitForRelease();

c)

untilRelease();

d)

releaseWait();

32.

Which command is used to make the robot move backward for a specified distance?

a)

moveBackwardForDistance();

b)

reverseForDistance();

c)

backwardForDistance();

d)

moveBackwards();

33.

What does the `playSound()` command do in ROBOTC?

a)

Plays a sound file from the robot's memory.

b)

Stops all sounds immediately.

c)

Increases the volume of the sound.

d)

Records a new sound.

34.

What is the function of the `startMotor()` command in ROBOTC?

a)

To start a motor at a specified speed.

b)

To stop a motor immediately.

c)

To reverse the motor direction.

d)

To set the motor to maximum speed.

35.

Which command is used to make the robot wait until a button is pressed?

a)

waitForButtonPress();

b)

untilButtonPress();

c)

buttonWait();

d)

pressButton();