Python Unit 2

Python Unit 2

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

SUB SUMATIF GENAP  INFORMATIKA

SUB SUMATIF GENAP INFORMATIKA

10th Grade

13 Qs

SMKN 4 Jakarta Quiz MikroTik Dasar

SMKN 4 Jakarta Quiz MikroTik Dasar

12th Grade

16 Qs

Flowchart Symbols

Flowchart Symbols

11th Grade

12 Qs

9 сын-4 тоқсанБЖБ

9 сын-4 тоқсанБЖБ

9th Grade

11 Qs

Cultura Digital 3ra Parcial

Cultura Digital 3ra Parcial

9th Grade

12 Qs

Python Unit 2

Python Unit 2

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Jon Kern

Used 4+ times

FREE Resource

AI

Enhance your content

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

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

Create a free account and access millions of resources

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

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

Already have an account?