Computer Programming in Python Review

Computer Programming in Python Review

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Today's Technlogies Grade 9 HA

Today's Technlogies Grade 9 HA

9th Grade

20 Qs

Long Test in Visual Basic

Long Test in Visual Basic

11th Grade

20 Qs

AI Camp Quiz 2

AI Camp Quiz 2

9th - 12th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

while loop and logical operators

while loop and logical operators

9th Grade

20 Qs

Media and Information Literacy Quiz No. 1

Media and Information Literacy Quiz No. 1

12th Grade

20 Qs

Computer Programming in Python Review

Computer Programming in Python Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Katy Fleming

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following is the correct way to define a turn_right function in Karel?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

hich of the following is not a valid condition to go in an if statement for Karel?

balls_present()

front_is_clear()

left_is_blocked()

turn_left()

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In the following code from the Cleanup Karel example, what is the purpose of If Statement #2?

To move the last time

To pick up the ball that is in the last spot

To pick up the ball that is in the last spot, if there is one

To take the ball from all of the positions that have a ball on them

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What makes the following command an invalid Karel command?

turn_Left()

It should end in semicolon

The L should be a lower l

It should start with a capital T

This command is correct

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is wrong with this for loop?

for i in range = 5;

move()

A. The for loop uses a semicolon(;) instead of colon(:)

B. It should say range(5) instead of range = 5

A

B

Both A and B

Neither A or B

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

If Karel starts at Street 1 and Avenue 1, facing East, where will Karel be, and what direction will Karel be facing after running the following code? (Assume the world is 10x10 in size)

Street 3, Avenue 1, Facing North

Street 1, Avenue 4, Facing North

Street 1, Avenue 3, Facing South

Street 1, Avenue 3, Facing North

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

Karel starts at Street 1, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?

Karel will end on Street 1, Avenue 2

Karel will end on Street 1, Avenue 7

This code won’t run because of a syntax error

Karel will crash into a wall

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?