WGU D522 Python for IT Automation OA | Objective Assessment |
61 Questions and Answers | 2025 Update | 100% Correct.
Correct 61
Incorrect
WGU D522 Python for IT Automation
61 Correct terms
Questions and answers
Term
Give this one a go later!
,5/31/25, 7:15 PM Python for IT Automation (WGU D522)
The interpreter determines the The type of variable can only be
type of variable during runtime changed with a special function.
Don't know?
2 of 61
Term
What does the 'strip()' method do in Python?
Give this one a go later!
It replaces all occurrences of a It removes leading and trailing
substring in a string whitespaces from a string
It converts all characters in a string to
It splits a string into a list of words
uppercase
Don't know?
3 of 61
Term
What does this built in Python function do?: max(), min()
Give this one a go later!
,5/31/25, 7:15 PM Python for IT Automation (WGU D522)
filters out values below a certain
sorts a sequence in ascending order
threshold
calculates the average value of a returns the maximum or
sequence minimum value from a sequence
Don't know?
4 of 61
Term
How can a global variable be created inside a function in Python?
Give this one a go later!
By defining the variable as a class
By using the 'static' keyword
attribute
By initializing the variable outside the By declaring the variable with
function the 'global' keyword
Don't know?
5 of 61
, 5/31/25, 7:15 PM Python for IT Automation (WGU D522)
Term
What are the two main escape characters?
Give this one a go later!
defines a set of logical conditions Unordered, mutable collection of
and lets the system deduce solutions. unique elements. {1,2,3}
\n : new line Focuses on describing a sequence of
\t : for a tab steps to perform a task
Don't know?
6 of 61
Term
What does this built in Python function do?: abs()
Give this one a go later!
converts a number to a string calculates the square of a number
returns the absolute value of a
returns the negative of a number
number
Don't know?