Python Quiz

Python Quiz

10th Grade

8 Qs

quiz-placeholder

Similar activities

CSE Hammen

CSE Hammen

9th - 12th Grade

11 Qs

Flowchart Symbols

Flowchart Symbols

10th Grade

10 Qs

Functions and Parameters Summative preview

Functions and Parameters Summative preview

9th - 12th Grade

10 Qs

Coding Loops Quiz

Coding Loops Quiz

10th Grade

10 Qs

Quiz 1 2.1 through 2.6

Quiz 1 2.1 through 2.6

9th - 12th Grade

11 Qs

Tracy the turtle

Tracy the turtle

10th Grade

11 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

CSF 2.4

CSF 2.4

9th Grade - University

10 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Jon Kern

Used 6+ times

FREE Resource

8 questions

Show all answers

1.

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)

50

60

10

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the following situations would it be best to make a function?

You want Tracy to draw a blue line, and your program requires lots of blue lines.

You need Tracy to move forward by 100.

You need Tracy to turn right and then turn left.

You need to change Tracy’s color.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a command you can give to Tracy?

color

turn

backward

left

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between defining and calling a function?

Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.

There is no difference.

Calling a function means you are teaching the computer a new word. Defining a function means you are commanding the computer to complete defined actions.

Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What control structure would be best to use in the following code?

backward(100)

right(90)

backward(100)

right(90)

backward(100)

right(90)

backward(100)

right(90)

A function

A while loop

A for loop

An if/else statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A circle

A hexagon

A triangle

A diamond

7.

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)

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the radii of the circles drawn from the following code?

for i in range(10, 55, 10):

circle(i)

10, 20, 30, 40, 50

10, 15, 20, 25, 30, 35, 40, 45, 50, 55

10, 55, 10

10, 20, 30, 40, 50, 55