Search Header Logo
Robot AP Computer Science Principles

Robot AP Computer Science Principles

Assessment

Presentation

Computers

9th - 12th Grade

Medium

Created by

David Guy

Used 21+ times

FREE Resource

3 Slides • 8 Questions

1

Robot AP Computer Science Principles

by David Guy

2

​Robot

media

3

​Robot

media

4

Multiple Choice

Question image

Which could be put in the <MISSING CODE> segment to get the robot to end in the Gray Square?

1

REPEAET 1 TIMES

2

REPEAET 2 TIMES

3

REPEAET 3 TIMES

4

REPEAET 4 TIMES

5

Multiple Choice

Question image

What will be the result if the code is run with the starting world shown?

1
2
3
4

6

Multiple Choice

Question image
1
2
3
4

7

Multiple Choice

Question image

The following grid contains a robot represented as a triangle, which is initially facing right. The following code segment is intended to move the robot to the gray square.

Which of the following can be used as a replacement for <MISSING STATEMENT> so that the code segment works as intended?

1

REPEAT 1 TIMES

2

REPEAT 2 TIMES

3

REPEAT 3 TIMES

4

REPEAT 4 TIMES

8

Multiple Choice

Question image

The program 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.

For which of the following grids does the program NOT correctly move the robot to the gray square?

1
2
3
4

9

Multiple Choice

Question image
1
2
3
4

10

Multiple Choice

Question image
1
2
3
4

11

Multiple Select

Question image

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 following code segments can be used to move the robot to the gray square?

Select two answers.

1
2
3
4

Robot AP Computer Science Principles

by David Guy

Show answer

Auto Play

Slide 1 / 11

SLIDE