wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Review Units 1-4

Total questions: 88

Worksheet time: 44mins

Name
Class
Date
1.
Formal Language
a)
A software that combines common programming tools into a single interface for developers to use.
b)
A language with no ambiguity/having to infer meanings.
c)
The characteristic of not being literal.
d)
A command that outputs anything inside the parentheses and quotation marks to the screen.
2.
Natural Language
a)
A program/window that converts code/instructions into something that the computer can understand and act upon.
b)
Central processing unit, where all the processing of files/commands happens, and translates code to binary.
c)
A language with no ambiguity/having to infer meanings.
d)
A language with ambiguous meanings; non-literal language can be used.
3.
Ambiguity
a)
The characteristic of not being literal.
b)
The actual physical components of your computer.
c)
Where you enter commands/information to a computer, and it transforms it into a way that the computer can understand the information.
d)
Central processing unit, where all the processing of files/commands happens, and translates code to binary.
4.
Compiler
a)
Where you enter commands/information to a computer, and it transforms it into a way that the computer can understand the information.
b)
A command that outputs anything inside the parentheses and quotation marks to the screen.
c)
A software that combines common programming tools into a single interface for developers to use.
d)
A program/window that converts code/instructions into something that the computer can understand and act upon.
5.
Integrated Development Environment (IDE)
a)
Central processing unit, where all the processing of files/commands happens, and translates code to binary.
b)
A language with ambiguous meanings; non-literal language can be used.
c)
A program/window that converts code/instructions into something that the computer can understand and act upon.
d)
A software that combines common programming tools into a single interface for developers to use.
6.
Print
a)
A collection of programs that executes different orders to generate what happens on the screen.
b)
A command that outputs anything inside the parentheses and quotation marks to the screen.
c)
The characteristic of not being literal.
d)
Where the computer displays output in a way you can understand, or where it executes the commands given to it for it to do.
7.
CPU
a)
A language with no ambiguity/having to infer meanings.
b)
A software that combines common programming tools into a single interface for developers to use.
c)
The actual physical components of your computer.
d)
Central processing unit, where all the processing of files/commands happens, and translates code to binary.
8.
Hardware
a)
Something that runs utilizing your hardware.
b)
The actual physical components of your computer.
c)
Where you enter commands/information to a computer, and it transforms it into a way that the computer can understand the information.
d)
A program/window that converts code/instructions into something that the computer can understand and act upon.
9.
Input
a)
Where you enter commands/information to a computer, and it transforms it into a way that the computer can understand the information.
b)
A command that outputs anything inside the parentheses and quotation marks to the screen.
c)
A collection of programs that executes different orders to generate what happens on the screen.
d)
A language with ambiguous meanings; non-literal language can be used.
10.
Output
a)
Something that runs utilizing your hardware.
b)
A way of outputting characters/other information that have a meaning in Python.
c)
Where the computer displays output in a way you can understand, or where it executes the commands given to it for it to do.
d)
Central processing unit, where all the processing of files/commands happens, and translates code to binary.
11.
Program
a)
A way of outputting characters/other information that have a meaning in Python.
b)
Something that runs utilizing your hardware.
c)
A software that combines common programming tools into a single interface for developers to use.
d)
Where the computer displays output in a way you can understand, or where it executes the commands given to it for it to do.
12.
Software
a)
Where the computer displays output in a way you can understand, or where it executes the commands given to it for it to do.
b)
Something that runs utilizing your hardware.
c)
Where you enter commands/information to a computer, and it transforms it into a way that the computer can understand the information.
d)
A collection of programs that executes different orders to generate what happens on the screen.
13.
Escape Sequences
a)
\”
b)
\\
c)
A way of outputting characters/other information that have a meaning in Python.
d)
\t
14.
Create a New line
a)
\t
b)
\n
c)
\”
d)
\\
15.
Tab for extra Spacing
a)
\n
b)
\”
c)
\\
d)
\t
16.
Quotation mark
a)
\”
b)
\\
c)
\t
d)
\n
17.
Comment
a)
Notes in the code for the programmer. (utilizes the #)
b)
Using print() to show information on the screen.
c)
Commands need to be structured correctly.
d)
Something that is input into the computer, to be used via a variable.
18.
Output
a)
A variable can be anything, but it is worth nothing unless assigned a value,
b)
Something that is input into the computer, to be used via a variable.
c)
Using print() to show information on the screen.
d)
Commands need to be structured correctly.
19.
Input
a)
Commands need to be structured correctly.
b)
A variable can be anything, but it is worth nothing unless assigned a value,
c)
Notes in the code for the programmer. (utilizes the #)
d)
Information that you’re putting into the computer.
20.
Variable
a)
Something that is input into the computer, to be used via a variable.
b)
Information that you’re putting into the computer.
c)
A variable can be anything, but it is worth nothing unless assigned a value,
d)
Commands need to be structured correctly.
21.
Value
a)
Something that is input into the computer, to be used via a variable.
b)
A variable can be anything, but it is worth nothing unless assigned a value,
c)
Using print() to show information on the screen.
d)
Commands need to be structured correctly.
22.
Syntax
a)
Information that you’re putting into the computer.
b)
A variable can be anything, but it is worth nothing unless assigned a value,
c)
Commands need to be structured correctly.
d)
Notes in the code for the programmer. (utilizes the #)
23.
int()
a)
A command that takes a value located inside the parentheses and converts it to an integer, if it is possible.
b)
A command that takes a value located inside the parentheses and converts it to a string, if possible.
c)
A command that takes a value located inside the parentheses and converts it to a string, if possible. Does not work with calculations, must transfer to an integer or a float for it to calculate properly.
d)
Works with decimals, instead of just whole numbers like an int command would.
24.
str()
a)
A command that takes a value located inside the parentheses and converts it to an integer, if it is possible.
b)
A command that takes a value located inside the parentheses and converts it to a string, if possible.
c)
A command that takes a value located inside the parentheses and converts it to a string, if possible. Does not work with calculations, must transfer to an integer or a float for it to calculate properly.
d)
Works with decimals, instead of just whole numbers like an int command would.
25.
String
a)
A number system based on ten, the one we normally use.
b)
The process of converting the value of one data type into another data type.
c)
A number system based on two.
d)
Any combination of letters, numbers, and symbols.
26.
Concatenation
a)
The continuously variable physical quantity that cannot be precisely measured.
b)
Numeric data stored in a computing device.
c)
To link two or more different things together in a chain or series.
d)
A number system based on ten, the one we normally use.
27.
Typecasting
a)
A number system based on two.
b)
Any combination of letters, numbers, and symbols.
c)
Numeric data stored in a computing device.
d)
The process of converting the value of one data type into another data type.
28.
Analog
a)
The process of converting the value of one data type into another data type.
b)
The continuously variable physical quantity that cannot be precisely measured.
c)
Numeric data stored in a computing device.
d)
A number system based on ten, the one we normally use.
29.
Digital
a)
Numeric data stored in a computing device.
b)
A number system based on ten, the one we normally use.
c)
The continuously variable physical quantity that cannot be precisely measured.
d)
A number system based on two.
30.
Binary
a)
Any combination of letters, numbers, and symbols.
b)
To link two or more different things together in a chain or series.
c)
The process of converting the value of one data type into another data type.
d)
A number system based on two.
31.
Decimal
a)
The continuously variable physical quantity that cannot be precisely measured.
b)
A number system based on ten, the one we normally use.
c)
Numeric data stored in a computing device.
d)
The process of converting the value of one data type into another data type.
32.
str()
a)
A command that takes a value located inside the parentheses and converts it to an integer, if it is possible.
b)
A command that takes a value located inside the parentheses and converts it to a string, if possible.
c)
A command that takes a value located inside the parentheses and converts it to a string, if possible. Does not work with calculations, must transfer to an integer or a float for it to calculate properly.
d)
Works with decimals, instead of just whole numbers like an int command would.
33.
float()
a)
A command that takes a value located inside the parentheses and converts it to an integer, if it is possible.
b)
A command that takes a value located inside the parentheses and converts it to a string, if possible.
c)
A command that takes a value located inside the parentheses and converts it to a string, if possible. Does not work with calculations, must transfer to an integer or a float for it to calculate properly.
d)
Works with decimals, instead of just whole numbers like an int command would.
34.
Variable
a)
Goes on the left side of the assignment operator. (EX
b)
Pulls in modules to add functions to your code.
c)
Goes on the right side of the assignment operator. (EX
d)
Symbol that helps us perform actions on values and variables.
35.
Calculation
a)
Pulls in modules to add functions to your code.
b)
Goes on the right side of the assignment operator. (EX
c)
Gives the remainder of an integer division problem.
d)
Collection of commands given a name.
36.
Addition, Subtraction, Multiplication, Division, Exponent
a)
Represented with the % symbol, and it means that you should perform modular division.
b)
Gives the remainder of an integer division problem.
c)
Goes on the right side of the assignment operator. (EX
d)
Addition(+), Subtraction(-). Multiplication(*), Division(/), Exponent(**)
37.
Assignment Operator
a)
Addition(+), Subtraction(-). Multiplication(*), Division(/), Exponent(**)
b)
“=” allows us to assign values to variables. What is input on the right side of the assignment operator will be computed, and the computed value is assigned to the variable on the left side of the assignment operator.
c)
Goes on the left side of the assignment operator. (EX
d)
Collection of code and functions that perform similar tasks.
38.
Operator
a)
Collection of commands given a name.
b)
Collection of code and functions that perform similar tasks.
c)
Symbol that helps us perform actions on values and variables.
d)
Represented with the % symbol, and it means that you should perform modular division.
39.
Modulo Operator
a)
Symbol that helps us perform actions on values and variables.
b)
Collection of code and functions that perform similar tasks.
c)
Represented with the % symbol, and it means that you should perform modular division.
d)
Goes on the right side of the assignment operator. (EX
40.
Modular Division
a)
Pulls in modules to add functions to your code.
b)
Addition(+), Subtraction(-). Multiplication(*), Division(/), Exponent(**)
c)
“=” allows us to assign values to variables. What is input on the right side of the assignment operator will be computed, and the computed value is assigned to the variable on the left side of the assignment operator.
d)
Gives the remainder of an integer division problem.
41.
Function/Method
a)
Collection of code and functions that perform similar tasks.
b)
Goes on the left side of the assignment operator. (EX
c)
Goes on the right side of the assignment operator. (EX
d)
Collection of commands given a name.
42.
Import
a)
Pulls in modules to add functions to your code.
b)
Gives the remainder of an integer division problem.
c)
Symbol that helps us perform actions on values and variables.
d)
Goes on the left side of the assignment operator. (EX
43.
Module
a)
Goes on the right side of the assignment operator. (EX
b)
“=” allows us to assign values to variables. What is input on the right side of the assignment operator will be computed, and the computed value is assigned to the variable on the left side of the assignment operator.
c)
Represented with the % symbol, and it means that you should perform modular division.
d)
Collection of code and functions that perform similar tasks.
44.
math functions
a)
fabs, pow, sqrt, math, pow, sqrt
b)
Returns a randomly selected element from the specified sequence.
c)
Random integer between (and including) x and y.
d)
Module used to create random numbers in programs. Numbers are from a sequence based on that seed value.
45.
Random
a)
Random float greater than 0.0 and less than 1.0.
b)
Module used to create random numbers in programs. Numbers are from a sequence based on that seed value.
c)
Random integer between (and including) x and y.
d)
fabs, pow, sqrt, math, pow, sqrt
46.
random()
a)
fabs, pow, sqrt, math, pow, sqrt
b)
Random float greater than 0.0 and less than 1.0.
c)
Random integer between (and including) x and y.
d)
Returns a randomly selected element from the specified sequence.
47.
randint(x, y)
a)
Random float greater than 0.0 and less than 1.0.
b)
Module used to create random numbers in programs. Numbers are from a sequence based on that seed value.
c)
Random integer between (and including) x and y.
d)
fabs, pow, sqrt, math, pow, sqrt
48.
Big Data
a)
Ever-increasing number of devices that are connected to the internet.
b)
2^40, or a million million bytes (10^12).
c)
1,024 terabytes.
d)
Data set too large and complex for traditional ways of processing.
49.
Terabyte
a)
Ever-increasing number of devices that are connected to the internet.
b)
2^40, or a million million bytes (10^12).
c)
1,024 terabytes.
d)
Data set too large and complex for traditional ways of processing.
50.
Petabyte
a)
Ever-increasing number of devices that are connected to the internet.
b)
2^40, or a million million bytes (10^12).
c)
1,024 terabytes.
d)
Data set too large and complex for traditional ways of processing.
51.
Internet of Things
a)
Ever-increasing number of devices that are connected to the internet.
b)
2^40, or a million million bytes (10^12).
c)
1,024 terabytes.
d)
Data set too large and complex for traditional ways of processing.
52.
max()
a)
Finds the largest in a set of values.
b)
Takes information from a data set and plots it on a graph.
c)
Allows us to use the functions in order to create graphs with Python.
d)
Finds the smallest in a set of values.
53.
min()
a)
Finds the largest in a set of values.
b)
Takes information from a data set and plots it on a graph.
c)
Allows us to use the functions in order to create graphs with Python.
d)
Finds the smallest in a set of values.
54.
simpleplot
a)
Finds the largest in a set of values.
b)
Takes information from a data set and plots it on a graph.
c)
Allows us to use the functions in order to create graphs with Python.
d)
Finds the smallest in a set of values.
55.
plot_lines()
a)
Finds the largest in a set of values.
b)
Takes information from a data set and plots it on a graph.
c)
Allows us to use the functions in order to create graphs with Python.
d)
Finds the smallest in a set of values.
56.
List data type
a)
Extra information sent in between the parentheses of a function.
b)
A structure used to determine if a condition is true or false. If true, it executes a block of code that condition evaluates. If false, it skips the section of code.
c)
It can hold more than one value at a time. (uses [])
d)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
57.
Function
a)
Used to compare how two values relate to each other. The result is either true or false.
b)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
c)
A structure used to determine if a condition is true or false. If true, it executes a block of code that condition evaluates. If false, it skips the section of code.
d)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
58.
Abstraction
a)
It can hold more than one value at a time. (uses [])
b)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
c)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
d)
Used to compare how two values relate to each other. The result is either true or false.
59.
Parameter
a)
Extra information sent in between the parentheses of a function.
b)
A structure used to determine if a condition is true or false. If true, it executes a block of code that condition evaluates. If false, it skips the section of code.
c)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
d)
Used to compare how two values relate to each other. The result is either true or false.
60.
If Statement
a)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
b)
Used to compare how two values relate to each other. The result is either true or false.
c)
A structure used to determine if a condition is true or false. If true, it executes a block of code that condition evaluates. If false, it skips the section of code.
d)
It can hold more than one value at a time. (uses [])
61.
Relational Operator
a)
Used to compare how two values relate to each other. The result is either true or false.
b)
It can hold more than one value at a time. (uses [])
c)
Extra information sent in between the parentheses of a function.
d)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
62.
<
a)
Less than
b)
Less than or equal to
c)
Greater than
d)
Not equal to
63.
>
a)
Less than
b)
Less than or equal to
c)
Greater than
d)
Greater than or equal to
64.
!=
a)
Less than
b)
Less than or equal to
c)
Greater than
d)
Not equal to
65.
<=
a)
Less than
b)
Not equal to
c)
Greater than
d)
Less than or equal to
66.
>=
a)
Less than
b)
Not equal to
c)
Greater than
d)
Greater than or equal to
67.
Boolean
a)
A statement of truth.
b)
Requires only one expression to be true for the overall condition to be true.
c)
A statement used to check a series of conditions, also known as an elif statement. Checks one condition after another until Python finds the first condition that is true.
d)
Requires both conditions to be true for the overall condition to be true.
68.
And
a)
Requires both conditions to be true for the overall condition to be true.
b)
Evaluates the condition and then does the opposite.
c)
A structure used in order to have a program choose between two different sets of code. True will execute the if portion and False will execute the else portion.
d)
A statement used to check a series of conditions, also known as an elif statement. Checks one condition after another until Python finds the first condition that is true.
69.
Or
a)
A structure used in order to have a program choose between two different sets of code. True will execute the if portion and False will execute the else portion.
b)
Requires only one expression to be true for the overall condition to be true.
c)
A statement of truth.
d)
A statement used to check a series of conditions, also known as an elif statement. Checks one condition after another until Python finds the first condition that is true.
70.
Not
a)
A structure used in order to have a program choose between two different sets of code. True will execute the if portion and False will execute the else portion.
b)
A statement used to check a series of conditions, also known as an elif statement. Checks one condition after another until Python finds the first condition that is true.
c)
Evaluates the condition and then does the opposite.
d)
Requires only one expression to be true for the overall condition to be true.
71.
if - else statement
a)
Evaluates the condition and then does the opposite.
b)
A statement of truth.
c)
A structure used in order to have a program choose between two different sets of code. True will execute the if portion and False will execute the else portion.
d)
Requires both conditions to be true for the overall condition to be true.
72.
Elif statement
a)
Requires both conditions to be true for the overall condition to be true.
b)
A statement used to check a series of conditions, also known as an elif statement. Checks one condition after another until Python finds the first condition that is true.
c)
Requires only one expression to be true for the overall condition to be true.
d)
A statement of truth.
73.
Algorithm
a)
A set of steps or instructions used to solve a problem or accomplish a task.
b)
A loop command that utilizes a control variable to loop commands.
c)
Something that can loop code forever if a control variable isn’t introduced.
d)
Something like “while *variable* < 7“.
74.
Loop
a)
Something that can loop code forever if a control variable isn’t introduced.
b)
Something like “while *variable* < 7“.
c)
A set of steps or instructions used to solve a problem or accomplish a task.
d)
A loop command that utilizes a control variable to loop commands.
75.
Loop Control Variable
a)
Something like “while *variable* < 7“.
b)
A set of steps or instructions used to solve a problem or accomplish a task.
c)
A loop command that utilizes a control variable to loop commands.
d)
Something that can loop code forever if a control variable isn’t introduced.
76.
While
a)
Something that can loop code forever if a control variable isn’t introduced.
b)
A loop command that utilizes a control variable to loop commands.
c)
Something like “while *variable* < 7“.
d)
A set of steps or instructions used to solve a problem or accomplish a task.
77.
Count variable
a)
Variable used to control how many times a loop runs or keep track of something in our loops.
b)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
c)
An input loop that has a set amount of times that it will run.
d)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
78.
Sum variable
a)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
b)
Variable that keeps track of things each time through the loop, and can be used to add up a set of numbers.
c)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
d)
A loop that will run as many times as instructed to by the user.
79.
Count Variable Loop
a)
A loop that will run as many times as instructed to by the user.
b)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
c)
Variable used to control how many times a loop runs or keep track of something in our loops.
d)
An input loop that has a set amount of times that it will run.
80.
User Input Loop
a)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
b)
An input loop that has a set amount of times that it will run.
c)
A loop that will run as many times as instructed to by the user.
d)
Variable that keeps track of things each time through the loop, and can be used to add up a set of numbers.
81.
Abstraction
a)
An input loop that has a set amount of times that it will run.
b)
Variable used to control how many times a loop runs or keep track of something in our loops.
c)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
d)
The process of reducing complexity by hiding unnecessary information, and focusing on what is needed to make a function work.
82.
Function
a)
Variable that keeps track of things each time through the loop, and can be used to add up a set of numbers.
b)
A loop that will run as many times as instructed to by the user.
c)
A named group of code that is designed to do a specific task. Can be built into Python, or created by a programmer.
d)
Variable used to control how many times a loop runs or keep track of something in our loops.
83.
Range Function
a)
Extra information sent in between the parentheses of a function.
b)
Used with the For Loop as the variable.
c)
Using the range() function, it returns a sequence of numbers starting with what you input for ‘start’ (0 by default), goes up by increments of what you input for ‘step’ (1 by default), and stops at the number you input for ‘stop’ (no default).
d)
The range() function creates a sequence of numbers based on a set of parameters. (see Start, stop, step) below.)
84.
Start, stop, step
a)
Addition.
b)
The range() function creates a sequence of numbers based on a set of parameters. (see Start, stop, step) below.)
c)
Using the range() function, it returns a sequence of numbers starting with what you input for ‘start’ (0 by default), goes up by increments of what you input for ‘step’ (1 by default), and stops at the number you input for ‘stop’ (no default).
d)
Set the sum variable to a number before the loop.
85.
i
a)
The range() function creates a sequence of numbers based on a set of parameters. (see Start, stop, step) below.)
b)
Set the sum variable to a number before the loop.
c)
Addition.
d)
Used with the For Loop as the variable.
86.
Define each part of the range function
a)
The range() function creates a sequence of numbers based on a set of parameters. (see Start, stop, step) below.)
b)
Extra information sent in between the parentheses of a function.
c)
Set the sum variable to a number before the loop.
d)
Using the range() function, it returns a sequence of numbers starting with what you input for ‘start’ (0 by default), goes up by increments of what you input for ‘step’ (1 by default), and stops at the number you input for ‘stop’ (no default).
87.
Initialize
a)
Used with the For Loop as the variable.
b)
Set the sum variable to a number before the loop.
c)
The range() function creates a sequence of numbers based on a set of parameters. (see Start, stop, step) below.)
d)
Addition.
88.
Sum
a)
Using the range() function, it returns a sequence of numbers starting with what you input for ‘start’ (0 by default), goes up by increments of what you input for ‘step’ (1 by default), and stops at the number you input for ‘stop’ (no default).
b)
Used with the For Loop as the variable.
c)
Addition.
d)
Extra information sent in between the parentheses of a function.