Intro to Python Unit 6: Test Review

Flashcard
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Quizizz 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
11 questions
Python Loops

Flashcard
•
9th - 11th Grade
12 questions
Robotics II Coding Review

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
8 questions
Warm Up- EduBlocks- Terms and Concepts

Flashcard
•
9th - 12th Grade
8 questions
Micro:bit Programming Concepts

Flashcard
•
9th - 12th Grade
12 questions
AP CSP Loops Practice

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Instructional Technology
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade