Search Header Logo

Python Random and Turtle Graphics Quiz

Authored by Fadi Fadi

Information Technology (IT)

10th Grade

Used 1+ times

Python Random and Turtle Graphics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the random.randint(1, 10) function do?

Generates a random float between 1 and 10

Generates a random integer between 1 and 10

Generates a random integer between 0 and 10

Generates a random integer between 1 and 9

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which library must you import to use the random.randint function?

math

random

os

sys

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will random.randint(5, 5) return?

An error

A random integer between 1 and 5

Always 5

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to move the pen without drawing?

pendown()

penup()

forward()

left()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the turtle.forward(100) command do?

Moves the turtle backward by 100 units

Rotates the turtle 100 degrees

Moves the turtle forward by 100 units

Changes the speed to 100

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does turtle.right(90) do?

Turns the turtle 90 degrees to the left

Rotates the turtle 90 degrees clockwise

Moves the turtle forward by 90 units

Changes the turtle’s color to blue

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you change the pen size in the Turtle module?

pen.size(5)

penwidth(5)

pensize(5)

pen.size = 5

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?