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
15 questions
Homeostasis: Feedback Loops

Flashcard
•
KG - University
15 questions
Scientific Method

Flashcard
•
KG - 12th Grade
15 questions
NYS Making Connections Lab Flashcard

Flashcard
•
9th - 12th Grade
15 questions
Homeostasis and Feedback

Flashcard
•
9th - 12th Grade
15 questions
Flashcard Review

Flashcard
•
9th Grade - University
9 questions
Loops - code.org

Flashcard
•
12th Grade
15 questions
Homeostasis

Flashcard
•
9th - 12th Grade
10 questions
Homeostasis

Flashcard
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade