Objective Assessment| Actual Questions and
Answers Latest Updated
(Graded A+)
Correct 177
Incorrect
Your answers
Term
"x is 30 or more"
, Don't know?
2 of 177
Definition
Which scenario is an example of a "NameError"?
Give this one a try later!
A local or global name is not
A syntax error occurs in the code
found in the code
A variable is assigned an incorrect A function is called with the wrong
data type parameters
Don't know?
3 of 177
Term
It adds items from another set into the current set
Give this one a try later!
, What does the readline() method do
What is the purpose of the modulus
when working with text files in
operator % in Python?
Python?
What is the primary focus of the
What does the update() method
Object-Oriented Programming (OOP)
do in a Python set?
paradigm?
Don't know?
4 of 177
Definition
What does the {:,.2f} placeholder do in Python string formatting?
Give this one a try later!
It formats a number to two
decimal places with comma as a It converts a string to a float
thousand separator
It rounds a number to the nearest
It formats a number as a percentage
whole number
Don't know?
5 of 177
, Definition
What is the behavior of the or operator in Python when the first
condition is True?
Give this one a try later!
It ignores the first condition and It evaluates both conditions and
checks the second returns False if either is False
It checks the second condition and It does not check the second
returns False condition and returns True
Don't know?
6 of 177
Term
It deletes a file at the specified path
Give this one a try later!
What does the os.remove() What is the purpose of the tuple()
function do in Python? constructor?
What does the bool() function do in What is the purpose of the if __name__
Python? == "__main__": pattern in Python?