wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Fall Semester Exam Review

Total questions: 86

Worksheet time: 43mins

Name
Class
Date
1.
Providing instructions to a computer to perform specific actions.
a)
Programming
b)
Python
c)
Comments
2.
A popular programming language that is easy to read and understand. It is typically used in automation, data analysis, and web development.
a)
Python
b)
Comments
c)
Debugging
3.
Informational statements that are not executed when a program is run.
a)
Comments
b)
Debugging
c)
Syntax
4.
The process of locating and correcting errors or bugs in a program that prevent it from functioning properly.
a)
Debugging
b)
Syntax
c)
Variable
5.
The set of rules outlining the grammar, punctuation, and structure of a language.
a)
Syntax
b)
Variable
c)
Data types
6.
A placeholder that stores a piece of data.
a)
Variable
b)
Data types
c)
String
7.
Categories of variables that specify the type of data being stored. In Python, there are four main types: strings, integers, booleans, and floats.
a)
Data types
b)
String
c)
Integer
8.
A sequence of characters or words that are surrounded by double quotation marks (“ “).
a)
String
b)
Integer
c)
Boolean
9.
A data type that can store positive and negative whole numbers.
a)
Integer
b)
Boolean
c)
Float
10.
A data type that can store values of true or false in order to perform logical operations.
a)
Boolean
b)
Float
c)
Concatenation
11.
A data type that can store numbers with fractional or decimal components.
a)
Float
b)
Concatenation
c)
Index
12.
The process of combining strings into a single string using the + operator.
a)
Concatenation
b)
Index
c)
Slicing
13.

The number assigned to each character in a string that indicates its position; used to access a specific character(s).

a)
Index
b)
Slicing
c)
Comparison Operators
14.
The process of accessing part of a string using a beginning and ending index number to define a range.
a)
Slicing
b)
Comparison Operators
c)
Boolean Operators
15.
Symbols that are used to compare values.
a)
Comparison Operators
b)
Boolean Operators
c)
Compound Boolean Expression
16.
Keywords used to connect statements to create compound boolean expressions or negate boolean expressions (and, or, and not).
a)
Boolean Operators
b)
Compound Boolean Expression
c)
Input
17.
An expression that is either true or false and uses boolean operators to combine two or more statements.
a)
Compound Boolean Expression
b)
Input
c)
Output
18.
Data that a computer or device receives.
a)
Input
b)
Output
c)
Input Device
19.
Data that is generated or displayed by a computer.
a)
Output
b)
Input Device
c)
Output Device
20.
Any device that sends signals or information to a computer to produce output.
a)
Input Device
b)
Output Device
c)
Typecasting
21.
Any device that displays the result(s) of input.
a)
Output Device
b)
Typecasting
c)
Arithmetic Operators
22.
The process of converting a variable’s data type to another type.
a)
Typecasting
b)
Arithmetic Operators
c)
Modulo
23.
Symbols used to perform basic mathematical operations (+, -, *, /, and %)
a)
Arithmetic Operators
b)
Modulo
c)
Conditional
24.
An arithmetic operator symbolized by a percentage sign (%) that returns the remainder of a division statement.
a)
Modulo
b)
Conditional
c)
If statement
25.
The block of code in a conditional executed if a new condition is true and all preceding conditions are false.
a)
Elif Statement
b)
Else statement
c)
Block of Code
26.
The block of code in a conditional executed if all conditions are false.
a)
Else statement
b)
Block of Code
c)
Indentation
27.
A group of connected statements that work together for a specific purpose in a program.
a)
Block of Code
b)
Indentation
c)
Whitespace
28.

The leading whitespace (spaces and tabs) before any statement in Python.

a)
Indentation
b)
Whitespace
c)
List
29.
Characters that are used for spacing. In Python, these characters are spaces and tabs.
a)
Whitespace
b)
List
c)
Library
30.
A data structure in Python used to store a collection of values.
a)
List
b)
Library
c)
List Method
31.
A collection of previously written code; composed of modules.
a)
Library
b)
List Method
c)
Module
32.
A predefined function that can be applied to lists to perform a specific action.
a)
List Method
b)
Module
c)
Dictionary
33.
A file containing a set of procedures that can be accessed and used in a program with the import statement.
a)
Module
b)
Dictionary
c)
Dictionary Method
34.
A data structure that stores a collection of key:value pairs where each key is associated with a value.
a)
Dictionary
b)
Dictionary Method
c)
Key
35.
A predefined function that can be applied to dictionaries to perform a specific action.
a)
Dictionary Method
b)
Key
c)
Value
36.
A unique string or number paired with a value.
a)
Key
b)
Value
c)
Data Structures
37.
A number, string, list, or other dictionary paired with a unique key.
a)
Value
b)
Data Structures
c)
For loop
38.
Containers used to store a collection of related data.
a)
Data Structures
b)
For loop
c)
Iteration
39.
A loop that executes a block of code, once for each item in a list, dictionary, or string.
a)
For loop
b)
Iteration
c)
Range()
40.
The process of looping through items in a sequence, like a string, a list, or a dictionary.
a)
Iteration
b)
Range()
c)
Keyword
41.
A built-in function that is often applied to for loops to repeat a specific block of code a specified number of times.
a)
Range()
b)
Keyword
c)
Artificial Intelligence
42.
Reserved words that have predefined meanings and applications that cannot be used to name variables or functions.
a)
Keyword
b)
Artificial Intelligence
c)
Infinite Loop
43.
Computers or machines that are programmed to think and learn like humans.
a)
Artificial Intelligence
b)
Infinite Loop
c)
While Loop
44.
A loop where the condition is never false, which causes the loop to continue indefinitely.
a)
Infinite Loop
b)
While Loop
c)
Built-in function
45.
A loop that executes a set of statements while a condition is true.
a)
While Loop
b)
Built-in function
c)
Function
46.
A function already defined in Python that can be called.
a)
Built-in function
b)
Function
c)
Return Function
47.
A block of code that can be used and reused to execute a specific action.
a)
Function
b)
Return Function
c)
User-defined Function
48.
A function that contains a return statement and returns a value when called.
a)
Return Function
b)
User-defined Function
c)
Void Function
49.
A function that is defined by a user with the keyword def followed by the function name.
a)
User-defined Function
b)
Void Function
c)
Argument
50.
A function that does not return a value when called.
a)
Void Function
b)
Argument
c)
Global Variable
51.
A value passed to a function when it is called, which corresponds to a parameter in the function.
a)
Argument
b)
Global Variable
c)
Local Variable
52.
A variable declared outside of a function, which can be accessed by all functions in a program.
a)
Global Variable
b)
Local Variable
c)
Parameter
53.
A variable declared inside a function, which can only be accessed by that function. Therefore the scope is limited to that function only.
a)
Local Variable
b)
Parameter
c)
Algorithm
54.
A special input that a function can take to change its behavior or output.
a)
Parameter
b)
Algorithm
c)
Binary Search
55.
Step-by-step instructions for solving a problem or completing a task.
a)
Algorithm
b)
Binary Search
c)
Linear search
56.
A search that divides a list in half during each iteration of the search until the requested element is found.
a)
Binary Search
b)
Linear search
c)
Machine Learning AI
57.
A search for data from the beginning of a list to the end until the required element is found.
a)
Linear search
b)
Machine Learning AI
c)
Rule-based AI
58.
Systems with the ability to automatically learn and improve from experience without being explicitly programming.
a)
Machine Learning AI
b)
Rule-based AI
c)
Alias
59.
Programs that produce pre-defined outcomes that are based on a set of certain rules coded by humans.
a)
Rule-based AI
b)
Alias
c)
Code Library
60.
Another name given to data to abbreviate it and improve the readability of code.
a)
Alias
b)
Code Library
c)
Simulation
61.
A collection of previously written code. Code libraries are composed of modules.
a)
Code Library
b)
Simulation
c)
programming
62.
A computer model that mimics a real-world process or phenomenon.
a)
Simulation
b)
python
c)
comments
63.
A blueprint that defines the set of attributes and methods for a particular category of object
a)
Class
b)
Object
c)
Attributes
64.
A specific instance of a class that shares the same attributes and methods as the class it was created with
a)
Object
b)
Attributes
c)
Methods
65.
The properties that all objects in a given class share.
a)
Attributes
b)
Methods
c)
Object-Oriented Programming
66.
Functions in a class that can perform specific actions
a)
Methods
b)
Object-Oriented Programming
c)
Constructor
67.
A programming model that is centered around the creation of classes and objects.
a)
Object-Oriented Programming
b)
Constructor
c)
Event
68.
A special method used to build objects from a class with certain attributes and methods.
a)
Constructor
b)
Event
c)
Event Handler
69.
An action or signal that initiates a set of commands and causes something to happen
a)
Event
b)
Event Handler
c)
Graphical User Interface
70.
Instructions for responding to an event, such as actions that should be performed when a user clicks a button or enters input
a)
Event Handler
b)
Graphical User Interface
c)
Efficiency
71.
A visual way of interacting with a computer using items such as windows, icons, and menus.
a)
Graphical User Interface
b)
Efficiency
c)
Readability
72.
Describes the speed of a program's execution
a)
Efficiency
b)
Readability
c)
Recursion
73.
Refers to how clear a program is for others to read and understand
a)
Readability
b)
Recursion
c)
Prototype
74.
A method for solving problems using solutions to smaller instances of the same problem.
a)
Recursion
b)
Prototype
c)
Clean Code
75.
A first or early version of a product from which other versions are developed; utilized to test a product or process and gather feedback
a)
Prototype
b)
Clean Code
c)
Encryption
76.
Code that can be easily understood by anyone reading it
a)
Clean Code
b)
Encryption
c)
Decryption
77.
A method used to convert data into an alternate format or code by transforming information to hide its meaning
a)
Encryption
b)
Decryption
c)
Cryptography
78.
The process of unscrambling a message to read the plain text
a)
Decryption
b)
Cryptography
c)
Plaintext
79.
The study of encryption techniques that allow for secure communication
a)
Cryptography
b)
Plaintext
c)
Ciphertext
80.
The original message before it has been encrypted
a)
Plaintext
b)
Ciphertext
c)
Cipher
81.
The encrypted or scrambled message
a)
Ciphertext
b)
Cipher
c)
Application Programming Interface
82.
A tool used to encrypt and decrypt messages
a)
Cipher
b)
Application Programming Interface
c)
DataFrame
83.
A set of coded commands that enables computer applications or devices to communicate with each other and exchange information.
a)
Application Programming Interface
b)
DataFrame
c)
Endpoint
84.
A two-dimensional data structure similar to a table with rows and columns, which is created with the Pandas library.
a)
DataFrame
b)
Endpoint
c)
JavaScript Object Notation (JSON)
85.
The digital location or unique web address for reesources on a server
a)
Endpoint
b)
JavaScript Object Notation (JSON)
c)
DataFrame
86.
A text format that is language-independent and is used for storing and transmitting data.
a)
JavaScript Object Notation (JSON)
b)
Endpoint
c)
DataFrame