wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python 201 Lessons 6-9 Vocab

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.
A collection of predefined functions and values that can be imported into your program.
a)
Library
b)
Turtle Library
c)
Object
d)
Pixel
2.
A library that defines a turtle object that can be used to draw shapes, lines, and colors.
a)
Library
b)
Turtle Library
c)
Object
d)
Pixel
3.
A Python object contains variables, functions, and values that correspond to that particular version of the item.
a)
Library
b)
Turtle Library
c)
Object
d)
Pixel
4.
A single dot on your computer screen. Computer screen resolutions are described in terms of how many pixels there are horizontally and vertically.
a)
Library
b)
Turtle Library
c)
Object
d)
Pixel
5.
A statement that determines the sequence of instructions that a program executes. Programs may follow one branch or another depending on the result of the Boolean/conditional statement.
a)
Branch
b)
Condition
c)
"If" Statement
d)
"Else" Statement
e)
"Elif" Statement
6.
A Boolean expression that evaluates to either True or False. Conditions can also just be the Boolean values True or False.
a)
Branch
b)
Condition
c)
"If" Statement
d)
"Else" Statement
e)
"Elif" Statement
7.
A statement containing the word "if" followed by a Boolean/conditional expression and a colon. If the Boolean expression is true, the indented code following the "if" statement will be executed. If the Boolean expression is false, the indented code will not execute and the next non-indented instruction will be executed. The end of the "if" statement must have a colon and there must be at least one indented instruction after the "if" statement. "If" statements can be nested as long as the amount of indentation stays consistent. Each level of indentation is suggested to be one tab or 4 spaces.
a)
Branch
b)
Condition
c)
"If" Statement
d)
"Else" Statement
e)
"Elif" Statement
8.
A statement that is directly after the set of indented code following an "if" statement. The indented code following the "else" statement will execute if the condition in the "if" statement is false.
a)
Branch
b)
Condition
c)
"If" Statement
d)
"Else" Statement
e)
"Elif" Statement
9.
A statement that can be placed between an "if" statement and an "else" statement. The "elif" statement should contain a condition and a colon, just like the "if" statement. However, the "elif" statement is only executed if the previous "if" or "elif" condition is false. There can be numerous "elif" statements.
a)
Branch
b)
Condition
c)
"If" Statement
d)
"Else" Statement
e)
"Elif" Statement
10.

A set of code that repeats while a certain condition is true. The loop will end when the condition becomes false.

a)

While Loop

b)

Iteration

c)

Iterator Variable

d)

Accumulator Variable

e)

Infinite Loop

11.

A single repetition of a loop. We often talk about loops in terms of the number of iterations that it has.

a)

While Loop

b)

Iteration

c)

Iterator Variable

d)

Accumulator Variable

e)

Infinite Loop

12.

The variable that stores a value which will determine the number of iterations. This variable must be initialized before the loop starts and will be used in the condition of the while loop. The variable must also be incremented inside the while loop to avoid an infinite loop.

a)

While Loop

b)

Iteration

c)

Iterator Variable

d)

Accumulator Variable

e)

Infinite Loop

13.

A loop that will repeat forever, usually due to the iterator variable not being incremented. You want to avoid these as much as possible as they will crash the website.

a)

While Loop

b)

Iteration

c)

Iterator Variable

d)

Accumulator Variable

e)

Infinite Loop

14.

A variable defined outside of a loop that accumulates a value during the loop. This is often used to calculate the sum or product of a series of numbers or variables.

a)

While Loop

b)

Iteration

c)

Iterator Variable

d)

Accumulator Variable

e)

Infinite Loop

15.

For a number "n", this is the product of all numbers between 1 and "n," including "n." This is written mathematically as "n!".

a)

Factorial

b)

Iteration

c)

Iterator Variable

d)

Accumulator Variable

e)

Infinite Loop

16.

Objects that cannot be modified after they are created. Strings are immutable and while strings cannot be manipulated, new strings can be formed with the changes applied.

a)

Immutable

b)

Index

c)

Substring

d)

"in" Operator

e)

"not in" Operator

17.

A position in a string or other object in Python. Indexes in Python start at 0 and increase by 1 as you move to the right. Python will produce an error if you try to access an invalid index, an index that is not in the string or object. In Python, you can also use negative indexes to reference the index from the end of the string.


a)

Immutable

b)

Index

c)

Substring

d)

"in" Operator

e)

"not in" Operator

18.

A sub-sequence of characters in a string. For example, "hello" is a substring of "hellogoodbye".


a)

Immutable

b)

Index

c)

Substring

d)

"in" Operator

e)

"not in" Operator

19.

A binary operator that will return True if the string on the left is in the string on the right. For example, ("hello" in "hello world") == True.


a)

Immutable

b)

Index

c)

Substring

d)

"in" Operator

e)

"not in" Operator

20.

A binary operator that will return True if the string on the left is not in the string on the right. Here is an example: ("z" not in "abcdefghijk") == True


a)

Immutable

b)

Index

c)

Substring

d)

"in" Operator

e)

"not in" Operator

21.

A sequence of characters (letters) enclosed in either double or single quotes. Multi-line strings can be written between three single quotes (''')


a)

Immutable

b)

Index

c)

Substring

d)

"in" Operator

e)

String