Python Houses

Python Houses

Assessment

Interactive Video

Computers

9th - 12th Grade

Medium

Created by

John Streety

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in setting up the Turtle graphics for drawing houses?

Importing the random library

Creating a list of colors

Setting the background color to green

Importing the Turtle library

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'house' function primarily do?

It changes the background color

It draws the walls and roof of a house

It imports the Turtle library

It sets the Turtle's speed

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the code ensure that each house has a different wall color?

By selecting a random color from a list

By alternating between two colors

By using a fixed color for all houses

By using a color based on the house's position

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was the mistake that caused the houses not to appear initially?

The list of colors was empty

The 'house' function was not called

The Turtle object was not created

The background color was not set

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was the typo in the code that needed fixing?

The background color was set to red

The Turtle object was not named

The list of colors was not defined

Shelly.goto was misspelled as Shelly.got