Python Quiz 1

Python Quiz 1

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

What is a program slides(6:16)

What is a program slides(6:16)

8th - 12th Grade

10 Qs

Cyber Skills Quiz 1 - Y9

Cyber Skills Quiz 1 - Y9

9th Grade

19 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Network Security

Network Security

9th - 11th Grade

10 Qs

BlueJ

BlueJ

10th Grade

10 Qs

Intro to Computer Programming

Intro to Computer Programming

9th - 12th Grade

14 Qs

Python Quiz 1

Python Quiz 1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Jessica Fletcher

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which direction does the Turtle face when it is created?

North

South

East

West

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

It creates a new turtle object that can be used for drawing.

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

It makes the turtle draw half of a rectangle on the screen.

Nothing, it is unnecessary.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following code would produce the following image?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

There is always exactly one line in the loop body.

The loop body ends with a semi-colon (;) which is not shown in the code above.Check MeCompare me

The loop body is handled with curly braces { }.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

prob = random.randint(1, 101)

prob = random.randint(1, 100)

prob = random.randint(0, 101)

prob = random.randint(0, 101)

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?