Python Program

Python Program

9th Grade

25 Qs

quiz-placeholder

Similar activities

Computer Science: Chapter 2 Test Review

Computer Science: Chapter 2 Test Review

9th - 12th Grade

20 Qs

Colour Theory

Colour Theory

3rd Grade - University

20 Qs

Networks & Topologies (OCR GCSE)

Networks & Topologies (OCR GCSE)

8th - 10th Grade

21 Qs

Code.org simple coding

Code.org simple coding

5th - 9th Grade

21 Qs

CSEC ICT Specimen Paper 1 (2017) Part 3

CSEC ICT Specimen Paper 1 (2017) Part 3

9th - 10th Grade

20 Qs

Class IX Computer Test-02

Class IX Computer Test-02

9th Grade

20 Qs

ACP - 3D Mod & Ani/Vid Game Prog - End of 2nd 9 Weeks

ACP - 3D Mod & Ani/Vid Game Prog - End of 2nd 9 Weeks

9th - 12th Grade

20 Qs

Python Quiz

Python Quiz

9th Grade

21 Qs

Python Program

Python Program

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Brittany Willis

Used 53+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1. 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

How many times can you call the function in your code?

once

depends on the function

as many times as you want

not more than once

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. 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.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following pieces of code will make Tracy do the following actions three times: go forward, change colors, and then turn around.

for i in range(4):

forward(30)

color("blue")

left(180)

for i in range(3):

forward(30)

color("blue")

left(180)

color("red")

for i in range(3):

backward(30)

color("blue")

left(180)

forward(30)

color("blue")

left(180)


forward(30)

color("green")

left(180)


forward(30)

color("orange")

left(180)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

1. Suppose you want to make Tracy draw a mountain range, like the one shown below, starting from the left side.

Which of the following functions would be the most useful function to write in order to solve this problem?

def make_triangle():

def change_to_red():

def move_100():

def my_function():

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

left

backward

turn

color

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the statements below is true about indentation in Python?

Indentation only matters in for loops.

Indentation never matters in Python.

Indentation always matters in Python.

Indentation only matters in functions.

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?