NEW
Font size
S
M
L
XL
WorksheetsPython Cert Vocab
Total questions: 74
Worksheet time: 37mins
Name
Class
Date
1.
Rounds a number up to the nearest integer
a)
math.ceil()
b)
Syntax Error
c)
If Statement
d)
Function
2.
Returns the factorial of a number
a)
math.factorial()
b)
Nested Statement
c)
Comparison Operator
d)
Identity Operator
3.
Rounds a number down to the nearest integer
a)
math.floor()
b)
os.rmdir()
c)
Class
d)
random.choices()
4.
Returns the natural logarithm of a number, or the logarithm of number to base
a)
math.log()
b)
Break Statement
c)
Random Library
d)
Finally Keyword
5.
Returns the value of x to the power of y
a)
math.pow()
b)
math.ceil()
c)
Pass Keyword
d)
random.randint()
6.
Returns the square root of a number
a)
math.sqrt()
b)
math.floor()
c)
write()
d)
Assignment
7.
Create the new directory to the path in the string argument of the function
a)
os.mkdir()
b)
Syntax Error
c)
Floating Variable
d)
math.factorial()
8.
deletes the file from the computer system
a)
os.remove()
b)
random.random()
c)
os.path.isfile()
d)
Try/Except Statement
9.
Return True if path is an existing regular file
a)
os.path.isfile()
b)
Elif Statement
c)
readlines()
d)
Identity Operator
10.
Calculates the mean (average) of the given data
a)
statistics.mean()
b)
math.pow()
c)
Comment
d)
math.sqrt()
11.
Calculates the median (middle value) of the given data
a)
statistics.median()
b)
Pydoc
c)
Object
d)
math.floor()
12.
Calculates the mode (central tendency) of the given numeric or nominal data
a)
statistics.mode()
b)
Os.path
c)
If Statement
d)
Variable
13.
Calculates the standard deviation from a sample of data
a)
statistics.stdev()
b)
readable()
c)
readable()
d)
math.floor()
14.
Returns a random number between the given range
a)
random.randrange()
b)
random.choices()
c)
Loosely Typed Language
d)
random.random()
15.
Returns a random number between the given range
a)
random.randint()
b)
While Loop
c)
Raise Keyword
d)
close()
16.
Returns a random element from the given sequence
a)
random.choice()
b)
statistics.mean()
c)
statistics.mean()
d)
os.path.exists()
17.
Returns a list with a random selection from the given sequence
a)
random.choices()
b)
Default Value
c)
Math Function
d)
random.random()
18.
Returns a random float number between 0 and 1
a)
random.random()
b)
readline()
c)
List
d)
math.factorial()
19.
Deletes the folder from the computer BUT it must be empty first
a)
os.rmdir()
b)
os.path.isfile()
c)
Syntax Error
d)
Sys Module
20.
Closes the file
a)
close()
b)
Assignment
c)
math.ceil()
d)
os.mkdir()
21.
Returns the file content
a)
read()
b)
Function
c)
Variable
d)
os.mkdir()
22.
Returns whether the file stream can be read or not
a)
readable()
b)
Def Keyword
c)
Elif Statement
d)
math.ceil()
23.
Returns one line from the file
a)
readline()
b)
Os Module
c)
Default Value
d)
Comparison Operator
24.
Returns a list of lines from the file
a)
readlines()
b)
Nested Loop
c)
math.log()
d)
write()
25.
Returns whether the file can be written to or not
a)
writable()
b)
os.rmdir()
c)
Function
d)
math.ceil()
26.
Writes the specified string to the file
a)
write()
b)
Identity Operator
c)
Return Keyword
d)
Indentation
27.
Writes a list of strings to the file
a)
writelines()
b)
os.rmdir()
c)
Else Statement
d)
readable()
28.
Return True if path is an existing regular file
a)
os.path.exists()
b)
os.mkdir()
c)
Default Value
d)
Break Statement
29.
A logical keyword where both sides of the comparison must be true in order for the statement to be true.
a)
AND
b)
Assignment
c)
Nested Statement
d)
List
30.
A tool used inside Python to perform basic mathematical operations.
a)
Arithmetic Operator
b)
White Space
c)
Continue Keyword
d)
Syntax Error
31.
An event which takes place when the user sets a variable to be equal to a string, number, Boolean operator, list, or date.
a)
Assignment
b)
Try/Except Statement
c)
Math Function
d)
Raise Keyword
32.
A type of variable with two possible values: true or false. A Boolean variable is often used to determine a course of action within a program.
a)
Boolean Variable
b)
Floating Variable
c)
os.remove()
d)
Default Value
33.
A statement used to stop or get out of a loop.
a)
Break Statement
b)
statistics.mode()
c)
os.remove()
d)
Nested Statement
34.
A reference type which is used to encapsulate data and can contain nested types.
a)
Class
b)
If Statement
c)
Syntax Error
d)
Sys Module
35.
A tool used in Python to explain what code does and to tell Python to ignore code temporarily.
a)
Comment
b)
Arithmetic Operator
c)
readline()
d)
readable()
36.
An operator which is used inside Python to compare arguments.
a)
Comparison Operator
b)
os.path.exists()
c)
os.rmdir()
d)
Logic Error
37.
A keyword which is used to skip a turn in a loop where a user is displaying a message or running an action a set number of times.
a)
Continue Keyword
b)
Break Statement
c)
writable()
d)
String Variable
38.
The module used in Python to import dates and times.
a)
Datetime Module
b)
List
c)
writable()
d)
statistics.stdev()
39.
A keyword used in Python to begin and define a function.
a)
Def Keyword
b)
Pydoc
c)
AND
d)
readlines()
40.
A value or item in a function which is set by the user to be constant.
a)
Default Value
b)
Function
c)
os.path.isfile()
d)
math.log()
41.
An if statement which can check for more than one condition. It is designed to stop after the first match.
a)
Elif Statement
b)
statistics.mean()
c)
Datetime Module
d)
Finally Keyword
42.
A statement used in conjunction with if and elif statements. An else statement provides an option in case if all other options fail.
a)
Else Statement
b)
statistics.median()
c)
random.choice()
d)
random.choices()
43.
A keyword which is used to deliver a final message to a user regardless of whether an argument was successful or not.
a)
Finally Keyword
b)
Nested Statement
c)
write()
d)
math.factorial()
44.
A type of number variable with a decimal. A floating variable is used for storage purposes.
a)
Floating Variable
b)
OR
c)
writable()
d)
Class
45.
A loop which will act a set number of times before canceling.
a)
For Loop
b)
writelines()
c)
readline()
d)
Else Statement
46.
A routine which is built by the user, that allows a user to not be required to repeat code up and down through a program.
a)
Function
b)
os.path.isfile()
c)
Raise Keyword
d)
Def Keyword
47.
An operator in Python which is used to determine if two variables have the same ID.
a)
Identity Operator
b)
Os.path
c)
Indentation
d)
Sys Module
48.
A tool used in Python to instigate action. In the event that something is true, it will perform a designated action.
a)
If Statement
b)
random.random()
c)
Sys Module
d)
readable()
49.
The process of moving code to the right in order to make it easier to read, and also to complete if statements.
a)
Indentation
b)
os.path.isfile()
c)
Math Function
d)
math.ceil()
50.
The input/output (io) module is the default module for input and output stream code in Python 3.0.
a)
Io Module
b)
String Variable
c)
Else Statement
d)
Logic Error
51.
A versatile method for storing data. A list does not need to have a defined length at the start.
a)
List
b)
White Space
c)
Comment
d)
math.floor()
52.
A type of error in Python which occurs when an argument is set incorrectly. The only way around this error is to test the code thoroughly.
a)
Logic Error
b)
Indentation
c)
random.choice()
d)
Comment
53.
A coding language where the user does not need to specify a data type when declaring variables. Python is a loosely typed language.
a)
Loosely Typed Language
b)
Sys Module
c)
Object
d)
Io Module
54.
A function in Python which is used to perform mathematical calculations.
a)
Math Function
b)
math.log()
c)
statistics.mean()
d)
Logic Error
55.
A loop which is placed inside of another loop.
a)
Nested Loop
b)
Nested Statement
c)
close()
d)
Def Keyword
56.
An if statement that is placed inside of another if statement.
a)
Nested Statement
b)
OR
c)
Os.path
d)
While Loop
57.
The logical keyword which takes a condition set by the user and checks for its opposite.
a)
NOT
b)
close()
c)
read()
d)
random.choice()
58.
An item that can be named by a variable. It is the part of code that receives an action.
a)
Object
b)
Identity Operator
c)
List
d)
math.log()
59.
A logical keyword where only one of the two possibilities need to be true in an argument.
a)
OR
b)
random.random()
c)
If Statement
d)
math.ceil()
60.
The operating system (os) module allows the user to perform operating system tasks, such as create a folder.
a)
Os Module
b)
Loosely Typed Language
c)
writable()
d)
math.pow()
61.
A piece of the os module, the os.path is used to help users to find files and folders on specific paths.
a)
Os.path
b)
math.factorial()
c)
math.pow()
d)
Identity Operator
62.
A keyword which is used as a placeholder for a condition or a function until the user knows what they wish to do with the condition or function.
a)
Pass Keyword
b)
While Loop
c)
math.pow()
d)
OR
63.
A feature in Python which acts as a library module. It automatically generates documentation on Python modules or keywords.
a)
Pydoc
b)
Os.path
c)
statistics.median()
d)
Continue Keyword
64.
A type of keyword which is used to display an error message when an exception is caused.
a)
Raise Keyword
b)
Floating Variable
c)
writelines()
d)
random.choice()
65.
A tool in Python which is used to warehouse all kinds of random number modules.
a)
Random Library
b)
Boolean Variable
c)
Os Module
d)
Os.path
66.
A keyword which defines the end of a function with an order to return back to regular set code.
a)
Return Keyword
b)
Sys Module
c)
Math Function
d)
Loosely Typed Language
67.
A error type which only occurs when an app runs and often results in the app crashing.
a)
Runtime Error
b)
White Space
c)
statistics.stdev()
d)
readlines()
68.
A type of variable in Python which is used to store items and information.
a)
String Variable
b)
writelines()
c)
readable()
d)
Comment
69.
An error in programming code which is caused either by a typo or by trying to use an item incorrectly.
a)
Syntax Error
b)
List
c)
math.factorial()
d)
math.floor()
70.
A module used to import built-in system functions which can be used in Python.
a)
Sys Module
b)
math.ceil()
c)
Runtime Error
d)
While Loop
71.
A statement used to deal with exception handling in Python.
a)
Try/Except Statement
b)
statistics.mean()
c)
Identity Operator
d)
Raise Keyword
72.
Containers which store information that can be used later.
a)
Variable
b)
Else Statement
c)
math.sqrt()
d)
math.sqrt()
73.
A loop which proposes an argument where if something is true or false it will run a designated code.
a)
While Loop
b)
Return Keyword
c)
Runtime Error
d)
math.log()
74.
The empty lines of code found in Python. It can be utilized to make code easier to read.
a)
White Space
b)
os.rmdir()
c)
readable()
d)
Syntax Error
Reset
