Search Header Logo

Python Unit 2

Authored by Jon Kern

Computers

9th - 12th Grade

Used 4+ times

Python Unit 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

count = 5

while count > 0:

circle(50)

forward(100)

5 circles in a row

4 circles in a row

Will create a slinky with 5 circles

Infinite Loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will Tracy perform when given the following code?

count = 200

count = count + 1

if count % 2 == 0:

forward(count)

backward(count)

forward(201)

backward(201)

forward(200)

backward(200)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following program?

for i in range(3, 7, 2):

circle(50, 360, i)

Three circles with radii of 3, 7 and 2.

Three shapes- a triangle (3 sides), a heptagon (7 sides), and a line (2 sides).

Three shapes- a triangle (3 sides), a pentagon (5 sides), and a heptagon (7 sides).

Two shapes- a triangle (3 sides) and a pentagon (5 sides).

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a user’s input control the size of a circle? If so, how?

No, user input is a string.

Yes, circle(user_input=50)

Yes, radius = int(input("Radius: "))circle(radius)

Yes,radius = input("Radius: ")circle(radius)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What shape will be drawn with the following command?circle(50, 360, 3)

Circle

Triangle

Diamond

Square

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands can be used to turn Tracy to face North if she is initially facing South?

right(180)

left(90)

right(90)

left(360)

left(180)

right(90)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the following for loop is complete, how many spaces will Tracy have moved?

for i in range(5): forward(10)

10

5

50

60

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?