Python Quiz 1

Python Quiz 1

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano

1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano

9th Grade - University

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

12th Grade

15 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

PPG 25 Feb 2022

PPG 25 Feb 2022

12th Grade

19 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?