pencil-icon
Build your own quiz

Computers

10th -

12thgrade

Image

CSP Robot Questions Review

user

124
plays

17 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt
    Image

    A robot starts in a grid facing north (B3). What is the robot's location and direction after the following program is executed?

    data = ["F", "F", "R", "F", "L", "F", "R", "R", "F"]

    FOR EACH move IN data

    {

    IF ( move = "F" AND CAN_MOVE(forward) )

    {

    MOVE_FORWARD()

    }

    ELSE IF (move = "R"){

    rotate_right()

    }

    ELSE IF ( move = "L") {

    rotate_left()

    }

    }

    Image
    Image
    Image
    Image
  • 2. Multiple Choice
    2 minutes
    1 pt
    Image

    A spinner is divided into three sections. The sector labeled Red is four times as large as each of the sectors labeled Blue and Yellow, which are of equal size. Which of the following correctly simulates the spinner?

    Image
    Image
    Image
    Image
  • 3. Multiple Choice
    2 minutes
    1 pt
    Image

    Which of the following code options can be used to move the robot (the black triangle) to the gray square?

    REPEAT 2 TIMES:

    {

    MOVE_FORWARD ()

    ROTATE_LEFT ()

    MOVE_FORWARD ()

    MOVE_FORWARD ()

    ROTATE_LEFT ()

    }

    REPEAT 4 TIMES:

    {

    ROTATE_LEFT ()

    MOVE_FORWARD ()

    ROTATE_RIGHT ()

    MOVE_FORWARD ()

    ROTATE_RIGHT ()

    MOVE_FORWARD ()

    ROTATE_LEFT ()

    }

    REPEAT 3 TIMES:

    {

    MOVE_FORWARD ()

    MOVE_FORWARD ()

    ROTATE_RIGHT ()

    MOVE_FORWARD ()

    }

    REPEAT 3 TIMES:

    {

    MOVE_FORWARD ()

    MOVE_FORWARD ()

    ROTATE_LEFT ()

    MOVE_FORWARD ()

    }

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?