Question Type: Robot

Question Type: Robot

10th - 12th Grade

4 Qs

quiz-placeholder

Similar activities

Procedures Practice Part 2

Procedures Practice Part 2

9th - 12th Grade

6 Qs

Karel Quiz Review

Karel Quiz Review

9th - 12th Grade

8 Qs

AP CSP: Random, While, Repeat Until and Robot Quiz Review

AP CSP: Random, While, Repeat Until and Robot Quiz Review

9th - 12th Grade

8 Qs

Intro to programming lego robots

Intro to programming lego robots

6th - 12th Grade

8 Qs

AP CSP Functions, Returns, Libraries

AP CSP Functions, Returns, Libraries

9th - 12th Grade

8 Qs

Code.org Unit 7 Review

Code.org Unit 7 Review

9th - 12th Grade

8 Qs

Bebras SMP-SMA 1

Bebras SMP-SMA 1

7th - 12th Grade

6 Qs

Question Type: Robot

Question Type: Robot

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Ahmet Ilbay

Used 151+ times

FREE Resource

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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.

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

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The figure below 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.

Which of the following code segments will move the robot to the gray square?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following grid contains a robot represented as a triangle. The robot is initially facing right.

Which of the following code segments can be used to move the robot to the gray square along the path indicated by the arrows?

Media Image
Media Image
Media Image
Media Image