Python

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Adam Dennison
Used 287+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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
Similar Resources on Wayground
26 questions
Programming Concepts Quiz

Quiz
•
10th Grade
20 questions
Tracy Unit 2 Final Test Study

Quiz
•
10th Grade
25 questions
Python CMU review 1-3

Quiz
•
11th Grade
27 questions
Intro to Programming MP4 EMPA Review Part 2

Quiz
•
9th - 12th Grade
20 questions
Excel Formulas/Functions

Quiz
•
9th - 12th Grade
20 questions
4.2 STRUKTUR KOD ARAHAN (ASK TINGKATAN 3)

Quiz
•
9th Grade
25 questions
Electronic Components

Quiz
•
9th - 12th Grade
20 questions
CODEHS 9th PHYTON 1.1 - 3.3

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade