Search Header Logo

CSP Robot Questions Review

Computers

10th - 12th Grade

Used 195+ times

CSP Robot Questions Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media 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()

}

}

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media 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?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media 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 ()

}

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Starting in the bottom left corner facing right, where will the robot end up after the following code is called with: controlRobot([2, 1, 3, 6])?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing right. Which of the following code segments will move the robot to the gray square?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A programming language that captures only the most primitive operations available to a machine is a(n)?

Algorithm
High Level Programming Language
Low Level Programming Langauge

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following images shows the path and ending location of the robot that will result from executing the code above. The starting location of the robot is shown as dotted triangle for cases where the robot does not start and end at the same location.


REPEAT 4 TIMES {

MOVE_FORWARD()

MOVE_FORWARD()

MOVE_FORWARD()

ROTATE_RIGHT(90)

MOVE_FORWARD()

ROTATE_RIGHT(90)

MOVE_FORWARD()

ROTATE_RIGHT(90)

}

Media Image
Media Image
Media Image
Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?