WGU D522 OA | Objective Assessment | Questions
and Answers | 2025 New Update | 100% Correct.
Correct 160
Incorrect
WGU D522 OA
160 Correct terms
Questions and answers
Which Python variable name is valid?
Give this one a go later!
"ho" router1
,7/10/25, 9:20 PM WGU D522 OA
switchname_e 'hello, python'
Don't know?
2 of 160
Definition
What is one of the reasons administrators often choose to automate
tasks using Python?
Give this one a go later!
Python allows administrators to
automate repetitive tasks,
The code results in a syntax error saving valuable time and
reducing the potential for
manual errors
It does not check the second
Incorrect use of assignment operator
condition and returns True
Don't know?
,7/10/25, 9:20 PM WGU D522 OA
3 of 160
Definition
What does the in keyword do in Python?
Give this one a go later!
It checks whether a specific
It replaces all occurrences of a
character or phrase exists within
character in the string
the string
It splits the string into a list of
It checks if a character is a digit
characters
Don't know?
4 of 160
Definition
A network configuration file needs to be updated frequently. Because
the device uses a dynamic IP address, the previous content in the file is
no longer necessary and should be removed.
Which mode of open() achieves this operation?
Give this one a go later!
, 7/10/25, 9:20 PM WGU D522 OA
devices = ['router1', 'firewall3'],
w
removed_device = 'switch2'
Runtime error Lists
Don't know?
5 of 160
Definition
Consider the Python code:
fruits = ['apple', 'banana', 'cherry'] fruits[1] = 'blueberry'
What will be the value of fruits after executing this code?
Give this one a go later!
['red', 'yellow', 'blue', 'green'] a python error occurs
an error will occur ['apple', 'blueberry', 'cherry']
Don't know?
6 of 160
Definition