Python

Python

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Chapter 5 Mid Term Quiz - Computer System -

Chapter 5 Mid Term Quiz - Computer System -

5th Grade - University

20 Qs

MOE-DL01: Asas pengetahuan teknologi

MOE-DL01: Asas pengetahuan teknologi

1st - 12th Grade

20 Qs

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

City & Guilds Award in Business Processes

City & Guilds Award in Business Processes

12th Grade

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Math and IT - Elimination Round

Math and IT - Elimination Round

10th - 12th Grade

20 Qs

Ինֆորմատիկա 10 II   կիսամյակի  ամփոփիչ աշխատանք

Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք

10th - 12th Grade

20 Qs

Grade-09 ICT

Grade-09 ICT

9th Grade

20 Qs

Python

Python

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Adam Dennison

Used 287+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

50 spaces

60 spaces

10 spaces

5 spaces

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Suppose you write a function. How many times can you call the function in your code?

Once

Not more than the number of commands the function holds

It depends on the function

As many times as you want

3.

MULTIPLE CHOICE QUESTION

2 mins • 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.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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?

# Has Tracy draw a single triangle

def make_triangle():

# Change's Tracy's color to red

def change_to_red():

# Moves Tracy forward by 100

def move_100():

# Draws a square

def my_function():

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

color

turn

backward

left

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

Indentation only matters in for loops. Then, everything must be indented one level.

Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.

Indentation always matters in Python. Every statement must be aligned correctly.

Indentation only matters in functions. Then, everything must be indented one level.

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?

Discover more resources for Computers