Objective Assessment| Actual Questions and
Answers Latest Updated
(Graded A+)
Correct 105
Incorrect
WGU D522 Python For IT Automation | Objective Assessment
Term
colors = ['red', 'blue', 'green'] colors.insert(1, 'yellow')
Camel case: each word, except for the first word, starts with a capital letter
Pascal case: each word starts with a capital letter
, Snake case: each word in the variable is separated by an underscore.
It enhances output formatting by embedding variables in strings. (although 'f'
strings are easier to read)
It removes leading and trailing whitespaces from a string
['red', 'yellow', 'blue', 'green']
when using the .insert(), it doesn't replace the value in that position, it inserts
into that place.
Don't know?
2 of 105
Definition
colon
Give this one a try later!
Which function is used to remove an How is external functionality is
item from a list by its index position? brought into a Python script?
Which data structure is ordered and
What is required at the end of
cannot be modified once it's created?
"if, else, elif, for, while, def, and
(Immutable, Fixed, Permanent,
class" statements?
Snapshot)
, Don't know?
3 of 105
Term
How many spaces per indentation?
Give this one a try later!
Marks start and end Colon
Writes data to a file 4
Don't know?
4 of 105
Term
What does the arithmatic operator **= do?
Give this one a try later!
emphasizes the use of functions and Unordered, mutable collection of
immutable data for computation. unique elements. {1,2,3}
, Focuses on describing a sequence of It take the exponent of the
steps to perform a task value applied to it.
Don't know?
5 of 105
Definition
A Dictionary
Give this one a try later!
Which data structure fits the requirements the best?
EX: Key-Value Pairs, Mapping, Associative, Looking up via Name or Label,
Descriptive Data not just values, "Associate X with Y", Fast Lookup, Retrieval by Key
What data structure do the brackets indicate in the following example?
devices = {"router": "router01", "switch": "switch01"}
What's a float
What does Python have built-in as a Module?
Don't know?
6 of 105