Python Flashcard 1

Python Flashcard 1

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

14 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which direction does the Turtle face when it is created?

Back

East

2.

FLASHCARD QUESTION

Front

Consider the following code. What does the line “import turtle” do?

Back

It defines the module turtle which will allow you to create a Turtle object and draw with it.

3.

FLASHCARD QUESTION

Front

True or False: A Turtle object can have any name that follows the naming rules

Back

True

4.

FLASHCARD QUESTION

Front

Which of the following code would produce the following image?

Back

Media Image

5.

FLASHCARD QUESTION

Front

True or False: You can only have one active turtle at a time. If you create a second one, you will no longer be able to access or use the first.

Back

False

6.

FLASHCARD QUESTION

Front

How does python know what statements are contained in a for loop or while loop body?

Back

They are indented to the same degree from the loop header.

7.

FLASHCARD QUESTION

Front

The correct code to generate a random number between 1 and 100 (inclusive) is:

Back

prob = random.randint(1, 100)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?