How Much Do You Know About ROBOTC Programming? Quiz

15 Questions | Total Attempts: 531

SettingsSettingsSettings
Please wait...
How Much Do You Know About ROBOTC Programming? Quiz

ROBOTC is a C-based programming language, used for writing and debugging programs in a Windows environment. This programming language offers all-inclusive, real-time debugger, used in high-end applications. This quiz has been created to test your knowledge about the necessary codes and functions of ROBOTC programming language. Read the questions carefully as they are tricky. Let's try out the quiz. All the best!


Questions and Answers
  • 1. 
    What factor or factors affect the robot’s ability to move in a straight line?
    • A. 

      Motor manufacturing tolerances

    • B. 

      Robot weight distribution

    • C. 

      Frictional forces in the robot’s drive train

    • D. 

      All the above

  • 2. 
    “Closed-loop” control describes a system...
    • A. 

      That monitors its own performance and adjusts its output to achieve a desired outcome.

    • B. 

      Whose specifications are kept secret.

    • C. 

      In which a Loop control structure with matching opening and closing punctuation is used.

    • D. 

      Which is ring-shaped.

  • 3. 
    The command nSyncedTurnRatio = 100; would tell the slave motor to turn:
    • A. 

      At the same rate and in the same direction as the master.

    • B. 

      At the same rate and in the opposite direction of the master.

    • C. 

      At 100 degrees per second, in the same direction as the master.

    • D. 

      At full power forward.

  • 4. 
    The PID algorithm adjusts:
    • A. 

      The power level of an individual motor to achieve a target speed.

    • B. 

      Two motors’ powers to keep them together at all times.

    • C. 

      A motor’s gear ratio to achieve a target power.

    • D. 

      The amount of friction in a motor to make it run more smoothly.

  • 5. 
    When used in robotics, what does PID stand for?
    • A. 

      Programmed Integrated Device

    • B. 

      Propelled Instrument Derivative

    • C. 

      Popsicle Ice Demonstration

    • D. 

      Proportional Integral Derivative

  • 6. 
    When using PID, you should not set your motor’s power to 100 because
    • A. 

      The robot will not have enough time to correct it’s course before it reaches the end of the maze board.

    • B. 

      The motor sensors cannot complete the PID algorithm for values over 50.

    • C. 

      There won’t be enough power left for the motor to compensate for going too slow.

    • D. 

      When the motors are synced BOTH motor power levels must equal 100

  • 7. 
    What should Motor B do if you stopped Motor C with while using Motor Synchronization?  (Assuming that Motor B is the master motor.)
    • A. 

      Motor B would stop.

    • B. 

      Motor B would continue at 50% power.

    • C. 

      Motor B would speed up to 100% power.

    • D. 

      Motor B would reverse for split second and stop.

  • 8. 
    Motor synchronization allows you to control your robot in a way that…
    • A. 

      Makes the robot maintain a constant speed in both motors.

    • B. 

      Prioritizes motor speed over alignment.

    • C. 

      Makes the robot maintain power to both motors.

    • D. 

      Prioritizes motor alignment over motor speed.

  • 9. 
    Given the following commands, what would the robot do?   1  task main () 2  { 3 4     nSyncedMotors = synchBC; 5     nSyncedTurnRatio = 100; 6 7     motor[motorB] = 50; 8     motor[motorC] = -50; 9     wait1Msec(4000); 10 11 }
    • A. 

      The robot would point turn to the right for 4 seconds

    • B. 

      The robot would go forward for 4 seconds

    • C. 

      The robot would point turn to the left for 4 seconds

    • D. 

      The robot would reverse for 4 seconds

  • 10. 
    Given the following commands, what would the robot do?   1  task main () 2  { 3 4     nSyncedMotors = synchBC; 5     nSyncedTurnRatio = -100; 6 7     motor[motorB] = 50; 9     wait1Msec(4000); 8 10  }
    • A. 

      The robot would point turn for 4 seconds

    • B. 

      The robot would go forward for 4 seconds

    • C. 

      The robot would do nothing

    • D. 

      The robot would reverse for 4 seconds

  • 11. 
    Which line(s) of the following code is unnecessary?   1   task main () 2   { 3 4       nSyncedMotors = synchBC; 5       nSyncedTurnRatio = 100; 6 7       motor[motorB] = 50; 8       motor[motorC] = 50; 9       wait1Msec(4000); 10 11     nSyncedMotors = synchBC; 12     nSyncedTurnRatio = -100; 13 14     motor[motorB] = 50; 15     motor[motorC] = -50; 16     wait1Msec(700); 17 18  }
    • A. 

      Lines 8 and 15

    • B. 

      Lines 11 and 12

    • C. 

      Line 9 and 16

    • D. 

      Lines 7 and 14

  • 12. 
    What will the robot do when given the following program...
    • A. 

      Go forward and point turn

    • B. 

      Go forward until the touch sensor is pressed and swing turn

    • C. 

      Go forward until the touch sensor is pressed and point turn

    • D. 

      Nothing

  • 13. 
    On what line(s) is the error in the following program...
    • A. 

      Line 14

    • B. 

      The 'Auto' lines

    • C. 

      Lines 7 and 13

    • D. 

      Line 5

  • 14. 
    When programming your robot to use the touch sensor, you must do the following things
    • A. 

      Configure the sensor port to recognize a Touch Sensor, create a while loop that tells the robot to do when the Touch Sensor is NOT pressed, and say to the robot what to do when the Touch Sensor IS pressed.

    • B. 

      Attach the Touch Sensor to the robot, synchronize the motors to the robot goes straighter, make sure the robot turns to the right.

    • C. 

      Configure the sensor port to recognize a Touch Sensor, synchronize motors BC, create a while loop.

    • D. 

      Create a while loop that tells the robot to do when the Touch Sensor is NOT pressed, tell the robot what to do when the Touch Sensor IS pressed, and tell the robot how many degrees of rotation it must travel to complete the entire course.

  • 15. 
    In robot C the how would the following statement be evaluated (100 != 50)
    • A. 

      The statement is 'true'

    • B. 

      The statement is 'false'