
CSP Robot Questions Review
Computers
10th - 12th Grade
Used 195+ times

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
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()
}
}
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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?
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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
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])?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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?
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)?
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)
}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?