RobotC
7 months ago
bblackmore_66063
Save
Edit
Host a game
Live GameLive
Homework
Solo Practice
Practice
28 QuestionsShow answers
  • Question 1
    30 seconds
    Q. Which one is a correct  code of motor?
    answer choices
    motor[leftMotor]  = 25;
    motor[leftMotor]  = 25
    motor[left]  = 25;
    motor[left]  = 25
  • Question 2
    30 seconds
    Q. How do we control the timer in the RobotC ?
    answer choices
    sec(2000);
    wait1Msec(2000)
    wait(2000);
    wait1Msec(2000);
  • Question 3
    30 seconds
    Q. What sign is used to end the code sentence ?
    answer choices
    ,
    .
    :
    ;
  • Question 4
    30 seconds
    Q. How do we declare(present) a variable ?
    answer choices
    int  a;
    int  a
    int ;
    a ;
  • Question 5
    30 seconds
    Q. Which part
    do we write
    codes?
    answer choices
    1
    2
    3
    4
  • Question 6
    30 seconds
    Q. How will behave the robot within these codes below?
     motor[leftMotor]  = 0;
     motor[rightMotor] = 55;
    answer choices
    Move Forward
    Move Backward
    Turn Right
    Turn Left
  • Question 7
    30 seconds
    Q. How will behave the robot within these codes below?
     motor[leftMotor]  = 100;
     motor[rightMotor] = 0;
    answer choices
    Move Forward
    Move Backward
    Turn Right
    Turn Left
  • Question 8
    30 seconds
    Q. How will behave the robot within these codes below?
     motor[leftMotor]  = 100;
     motor[rightMotor] =100;
    answer choices
    Move Forward
    Move Backward
    Turn Right
    Turn Left
  • Question 9
    30 seconds
    Q. What do we use to control the number of repetition in while structure? 
    answer choices
    Counter
    Motor
    Robot
    Officer
  • Question 10
    30 seconds
    Q. What codes should we use to repeat the code more than 1 time?
    answer choices
    While
    If
    Motor
    Int
  • Question 11
    30 seconds
    Q. What is half speed value when we start a motor?
    answer choices
    63
    127
    100
    50
  • Question 12
    30 seconds
    Q. Which one of these representations of Task Main will work in ROBOTC?
    answer choices
    Task main ()
    task main ()
    Taskmain ()
    task main;
  • Question 13
    30 seconds
    Q.

    Which command means run time?

    answer choices

    wait

    stopMotor

    startMotor

  • Question 14
    30 seconds
    Q. When you use a limit switch, which command would be used?
    answer choices
    untilTouch
    untilBump
    startMotor
    wait
  • Question 15
    120 seconds
    Q.

    How do you make the following appear in your program?

    answer choices

    Compile program

    Download to robot

    Motor and Sensor SetUp

    Robot-Compiler Target

  • Question 16
    300 seconds
    Q.

    In RobotC each { must have a } ?

    answer choices

    True

    False

  • Question 17
    300 seconds
    Q.

    What happens if one paired punctuation such as parantheses are missing?

    answer choices

    the robot will assume that it is there and continue running

    the program will not compile and the programmer will see an error message

    the program will skip the statement

    the program will delete the paired punctuation that is not missing

  • Question 18
    300 seconds
    Q.

    Identify the line in which the error exists in the program.

    answer choices

    line 10

    line 11

    line 12

    line 13

    line 14

  • Question 19
    120 seconds
    Q.

    Find the error in this code.


    turnLEDOff(red);

    turnLEDOff(yellow)

    turnLEDOff(green);

    turnLEDOn(red);

    untilTouch(touchSensor);

    turnLEDOff(red);

    answer choices

    Missing a parameter

    Missing a semicolon

    Reversed parameters

    Wrong notation for name of sensor/command

  • Question 20
    30 seconds
    Q.

    What is this VEX Robot part?

    answer choices

    Spur Gear

    Bump Switch

    Vex Motor

    Vex Cortex

  • Question 21
    30 seconds
    Q. What is this VEX Robot part?
    answer choices
    Bearing Plate
    Collar Shaft
    Cortex
    Spur Gear
  • Question 22
    30 seconds
    Q.

    What is this VEX Robot part?

    answer choices

    Vex Motor

    Vex Motor Controller

    Vex Bump Switch

    Vex Extension Cord

  • Question 23
    30 seconds
    Q.

    If you want to repeat your code forever, what should go inside the circled parentheses?

    answer choices

    1 == 1

    1 = 1

    1 > 2

    1

  • Question 24
    120 seconds
    Q.

    Where should the "If statement" of a code go in Robot C?

    answer choices

    1

    2

    3

    4

    5

  • Question 25
    120 seconds
    Q.

    Where should the "Else Statement" go in Robot C?

    answer choices

    4

    5

    6

    7

    8

  • Question 26
    120 seconds
    Q.

    What is the error is shown in the image?

    answer choices

    The programmer forgot to do the Motor and Sensor setup

    The programmer forgot some punctuation

    The programmer forgot to add an If, Else statement

    The programmer forgot to compile the program

  • Question 27
    120 seconds
    Q.

    If there are NO errors in your code, but the program is not running on your robot, what should you do next? (2 correct answers!)

    answer choices

    Check that the wiring matches the Motor and Sensor setup

    Give up and close your computer

    Check that your robot is turned on

    Delete the code and write the whole thing again

    Change the names of your motors and sensors in Motor and Sensor setup

  • Question 28
    30 seconds
    Q.

    Everyone can learn how to code.

    answer choices

    True

    False

Report Quiz
Join a game