The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom right square of the grid and facing toward the top of the grid. Which of the statements is true?
Algorithms Robots

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Charles Martinez
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Program I correctly moves the robot to the gray square, but program II does not.
Program II correctly moves the robot to the gray square, but program I does not.
Both program I and program II correctly move the robot to the gray square.
Neither program I nor program II correctly moves the robot to the gray square.
2.
MULTIPLE CHOICE QUESTION
5 mins • 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?
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The grid below contains a robot represented as a triangle, initially facing up. The robot can move into a white or gray square but cannot move into a black region.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
PROCEDURE MoveTriangle (numMoves, numTurns)Which of the following instructions will get the red triangle to the gray square?
{
REPEAT numMoves TIMES
{
MOVE_FORWARD()
}
REPEAT numTurns TIMES
{
TURN_RIGHT()
}
}
MoveTriangle (1, 1) MoveTriangle (1, 1) MoveTriangle (3, 1) MoveTriangle (3, 0)
MoveTriangle (4, 1)
MoveTriangle (4, 0)
MoveTriangle (1, 1)
MoveTriangle (1, 3)
MoveTriangle (3, 1)
MoveTriangle (3, 0)
MoveTriangle (1, 1)
MoveTriangle (1, 3)
MoveTriangle (3, 3)
MoveTriangle (3, 0)
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
5. The following question uses a robot in a grid of squares. The robot is represented as a triangle,
which is initially in the bottom left square of the grid and facing right.
Which of the following shows the location of the robot after running the code segment?
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
8. The code segment below is intended to move a robot in a grid to a gray square. The program segment uses the procedure GoalReached, which evaluates to true if the robot is in the gray square and evaluates to false otherwise. The robot in each grid is represented as a triangle and is initially facing left. The robot can move into a white or gray square but cannot move into a black region.
REPEAT UNTIL (GoalReached ()) {
IF (CAN_MOVE (forward))
{
MOVE_FORWARD ()
}
IF (CAN_MOVE (right))
{
ROTATE_RIGHT ()
}
IF (CAN_MOVE (left))
{
ROTATE_LEFT ()
}
}
For which of the grids does the code segment NOT correctly move the robot to the gray square?
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
14. The figure shows a robot in a grid of squares. The robot is represented as a triangle, which is initially facing upward. The robot can move into a white or gray square but cannot move into a black region.
Consider the procedure MoveAndTurn shown. Which of the following code segments will move the robot to the gray square?
Similar Resources on Quizizz
10 questions
Comp Sci Unit 3 #11

Quiz
•
11th Grade
10 questions
Spike Level 2

Quiz
•
8th - 12th Grade
10 questions
Alpha Task Code Quiz Check in

Quiz
•
9th - 12th Grade
10 questions
Lego Spike - Challenge 1 Quiz

Quiz
•
6th Grade - University
10 questions
Universal Robots Module 5 Quiz

Quiz
•
12th Grade
6 questions
Bebras SMP-SMA 1

Quiz
•
7th - 12th Grade
10 questions
CSI U5L2 - Sequence & Selection

Quiz
•
10th Grade - University
6 questions
Procedures Practice Part 2

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade