Search Header Logo

Python L39 US Game 1

Authored by Future Teacher

Information Technology (IT)

6th - 8th Grade

Used 2+ times

Python L39 US Game 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the line: t.ht()

To set the turtle’s heading to zero

To hide the turtle

To halt the turtle’s movement

To highlight the turtle

2.

OPEN ENDED QUESTION

3 mins • 1 pt

In the code, what does .penup() do to the turtle?

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method reads the 50_States.csv file into a DataFrame?

pandas.open_csv()

pandas.read_csv()

pandas.load()

pandas.read_file()

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Fill in the blank to add the image as the turtle shape: screen.______(image)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this line return? state = data[data.state == user_answer]

The DataFrame row(s) where state equals user_answer

The x and y coordinates of the guessed state

A list of all states except user_answer

An error because state is undefined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the CSV file is named "50_states.csv" but your code says "50_States.csv", what will happen and why?

The code will run successfully without any issues.
The code will fail to find the file due to case sensitivity.
The file will be found but will return empty data.
The code will throw a syntax error unrelated to the file name.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use .item() when getting the x and y coordinates?

We use .item() to format the coordinates for display.
We use .item() to retrieve the actual x and y coordinate values from a data structure.
We use .item() to convert coordinates to strings.
We use .item() to calculate the distance between points.

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?