Python Quiz

Python Quiz

10th Grade

8 Qs

quiz-placeholder

Similar activities

Sistema Operativo Android

Sistema Operativo Android

9th - 12th Grade

10 Qs

Fondo de pantalla

Fondo de pantalla

10th Grade

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Questionário Aula 6 - Int. à Inf. (Segurança e Proteção)

Questionário Aula 6 - Int. à Inf. (Segurança e Proteção)

10th Grade

10 Qs

Basic computer

Basic computer

9th - 12th Grade

8 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Jon Kern

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

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)

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?