wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Code Review

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

In this command, which value is the power level?

a)

turnLeft

b)

.4

c)

rotations

d)

50

2.

What is NOT true about #pragma?

a)

It sets the power levels of the motors.

b)

Its code is automatically generated by ROBOTC configuration wizard.

c)

It tells the robot which sensor/motor is connected to which port.

d)

It indicates which Model Configuration is selected in the Motor and Sensor Setup.

3.

What does these commands do?

a)

It sets the left and right motors to move for 50 rotations.

b)

It sets the left and right motors to move for 50 seconds.

c)

It sets the left and right motors to move at 50% power level.

d)

It sets the left and right motors to stop for 50 seconds.

4.

Until when does this command hold the program flow?

a)

until the bumpSwitch is detected.

b)

until the bumpSwitch's value becomes true.

c)

until the SensorValue becomes bumpSwitch value.

d)

The code is incomplete.

5.

What is NOT true about this program?

a)

As long as the value of the gyro sensor is less than 220, the robot will do the commands inside the curly braces { }.

b)

When the gyro sensor detects a value greater than 220, the robot will stop line tracking.

c)

The robot waits until the gyro sensor detects a value less than 220, then it will start line tracking.

d)

If the gyro sensor detects 200, the robot will stop line tracking.

6.

Which of these will be used by the command?

a)
b)
c)
d)
7.

Which of these is NOT true?

a)

These are codes to declare variables.

b)

These variables will store integer values.

c)

These already contain values.

d)

encoderLine1, encoderLine2, and encoderLine3 are the variable names.

8.

Which of these is TRUE?

a)

It resets the value of the leftMotor to 0.

b)

It removes left motor as motor encoder.

c)

It makes the motor move to its starting position.

d)

It removes the name leftMotor from the device.

9.

True or False?

Whatever value the left motor has will be stored into the variable encoderLine2.

a)

True

b)

False

10.

Which of these is NOT true?

a)

The text will be displayed at the center of the VEX IQ remote screen.

b)

The text will be displayed at line 3 of the VEX IQ remote screen.

c)

The screen will display "Pipe Length = (an integer value)".

d)

The screen will display text together with the value stored in tha variable encoderLine3.

e)

The text will be displayed for 3 seconds.