Search Header Logo

Comp Sci Unit 3 #7

Authored by Nick Nessralla

Computers

11th Grade

Used 16+ times

Comp Sci Unit 3 #7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz focuses on algorithmic thinking and programming logic within the context of computer science, specifically targeting robot navigation and simulation algorithms. Designed for grade 11 students, the assessment evaluates students' ability to trace through code execution, understand loop structures, analyze conditional statements, and predict program outcomes. The core concepts students need include understanding iterative processes, spatial reasoning for grid-based movement, comprehension of boolean logic and conditional evaluation, and the ability to mentally execute step-by-step algorithmic procedures. Students must demonstrate proficiency in analyzing nested loops, understanding how variables change state during program execution, and recognizing equivalent algorithmic approaches that produce identical results. The problems require strong logical reasoning skills and the ability to visualize how abstract code translates into concrete actions. Created by Nick Nessralla, a computer science teacher in the US who teaches grade 11. This quiz serves as an excellent tool for formative assessment during units covering algorithms, programming logic, and computational thinking. Teachers can use these problems as warm-up activities to activate prior knowledge about programming constructs, as guided practice during instruction on loop structures and conditional statements, or as homework assignments to reinforce concepts covered in class. The varied question formats make this assessment particularly valuable for review sessions before summative evaluations, allowing students to demonstrate their understanding through code analysis and prediction rather than code writing. This quiz aligns with CSTA standards 3A-AP-13 (creating prototypes that use algorithms to solve computational problems) and 3A-AP-14 (using lists to simplify solutions), as well as supporting the algorithmic thinking components outlined in the Computer Science Principles framework.

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following grid contains a robot represented as a triangle, which is initially in the bottom-left square of the grid and facing the top of the grid. The robot can move into a white or a gray square but cannot move into a black region.


The following code segment implements an algorithm that moves the robot from its initial position to the gray square and facing the top of the grid.

When the robot reaches the gray square, it turns around and faces the bottom of the grid. Which of the following changes, if any, should be made to the code segment to move the robot back to its original position in the bottom-left square of the grid and facing toward the bottom of the grid?

Interchange the ROTATE_RIGHT and the ROTATE_LEFT blocks.

Replace ROTATE_RIGHT with ROTATE_LEFT.

Replace ROTATE_LEFT with ROTATE_RIGHT.

No change is needed; the algorithm is correct as is.

2.

MULTIPLE CHOICE QUESTION

30 sec • 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.

The code segment below uses the procedure GoalReached, which evaluates to True if the robot is in the gray square and evaluates to otherwise.

Repeated Until (GoalReached () )

{

<Missing Code>

}

Which of the following replacements for Missing Code can be used to 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 following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing right.

Consider the procedures below.

 

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

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

The following programs are each intended to move the robot to the gray square. Program II uses the procedure , which returns  if the robot is in the gray square and returns False

 otherwise.

Which of the following statements is true?

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.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The question below uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the center square of the grid and facing toward the top of the grid.

The following code segment is used to move the robot within the grid.

A gray square represents a possible final location of the robot after the code segment is executed. Which of the following represents all possible final locations for the robot?

Media Image
Media Image
Media Image
Media Image

7.

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

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?