Intro to Python Unit 6: Test Review

Flashcard
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following defines a global variable, range function, and for loop? Options: a. A global variable is a variable that is accessible throughout the entire program. The range function generates a sequence of numbers. A for loop is used to iterate over a sequence. b. A global variable is a variable that is only accessible within a function. The range function generates a random number. A for loop is used to execute a block of code once. c. A global variable is a variable that is accessible only within a class. The range function generates a list of strings. A for loop is used to define a function. d. A global variable is a variable that is accessible only within a module. The range function generates a sequence of characters. A for loop is used to terminate a program.
Back
A global variable is a variable that is accessible throughout the entire program. The range function generates a sequence of numbers. A for loop is used to iterate over a sequence.
2.
FLASHCARD QUESTION
Front
You use a for loop instead of a while loop when:
Back
You know the exact number of iterations needed.
3.
FLASHCARD QUESTION
Front
Write a line of code that will draw a solid line from point (108, 67) to (56, 178).
Back
draw_line((108, 67), (56, 178), 12, 'black')
4.
FLASHCARD QUESTION
Front
Write a line of code that will draw a green circle at the point (78, 119) with a radius of 170.
Back
draw_circle([78, 119], 170, 'green')
5.
FLASHCARD QUESTION
Front
For a horizontal line the _______________ values are the same.
Back
y-coordinate
6.
FLASHCARD QUESTION
Front
What is returned by the code: range (20, 100, 30)?
Back
[20, 50, 80]
7.
FLASHCARD QUESTION
Front
Write the code to draw a red point at (8, 90).
Back
draw_point((8, 90), 'red')
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
AP CS A Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
9 questions
Reading and Writing Files with Python Intro

Flashcard
•
9th - 12th Grade
10 questions
DSL 106 W8 D2

Flashcard
•
KG - University
9 questions
Python Review 5/23

Flashcard
•
9th - 12th Grade
6 questions
Python -- Inputs

Flashcard
•
9th - 12th Grade
12 questions
BJC AP CSP Unit 3 Exam Review (In-Class)

Flashcard
•
9th - 12th Grade
10 questions
CS Python Fundamentals Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
7 questions
Intro to Python Project Stem Unit 7 Flashcards

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade