WGU D 522 PYTHON FOR IT AUTOMATION | OA| |OBJECTIVE
ASSESSMENT| EXAM QUESTIONS & ANSWERS
Correct 61
Incorrect
Term
what is a dictionary mapping type?
an unordered collection of
Unordered, mutable collection of
unique elements. {1,2,3}
'name':'John'}
, A copy of the list where changes to defines a set of logical conditions
the copied list do not affect the and lets the system deduce
original list. solutions.
Don't know?
2 of 61
Term
What is the purpose of the Code Editor in a Python IDE?
Give this one a try later!
To compile Python code into To manage Python libraries and
executable files dependencies
To provide a text editor
designed for Python, offering
To debug Python code by
features like syntax
identifying errors
highlighting, code completion,
and indentation.
Don't know?
3 of 61
Term
How can multiple Python variables of different types be output
using the print() function?
Give this one a try later!
, By concatenating each variable with By using a semicolon to separate
a plus sign each variable
By separating each variable By enclosing all variables in
with a comma parentheses
Don't know?
4 of 61
Term
What does this built in Python function do?: print()
Give this one a try later!
performs mathematical calculations reads input from the user
outputs text or variables to the
stores data in a variable
console
Don't know?
, 5 of 61
Term
What does the string slicing operation 'text {::-1] do where text =
"Hello, Python!"?
Give this one a try later!
list: Ordered, mutable sequence;
[1,23]
tuple: Ordered, immutable It returns the remainder of the
sequence; (1,2,3) division of two numbers.
range: represents a range of values;
e.g. range(5)
It reverses the string.
It enhances output formatting by
The 'step' portion of the slice embedding variables in strings.
is negative, indicating the (although 'f' strings are easier to
stride between characters is read)
reversed.
Don't know?
6 of 61
Term
What does this built in Python function do?: int(), float(), str()
Give this one a try later!
ASSESSMENT| EXAM QUESTIONS & ANSWERS
Correct 61
Incorrect
Term
what is a dictionary mapping type?
an unordered collection of
Unordered, mutable collection of
unique elements. {1,2,3}
'name':'John'}
, A copy of the list where changes to defines a set of logical conditions
the copied list do not affect the and lets the system deduce
original list. solutions.
Don't know?
2 of 61
Term
What is the purpose of the Code Editor in a Python IDE?
Give this one a try later!
To compile Python code into To manage Python libraries and
executable files dependencies
To provide a text editor
designed for Python, offering
To debug Python code by
features like syntax
identifying errors
highlighting, code completion,
and indentation.
Don't know?
3 of 61
Term
How can multiple Python variables of different types be output
using the print() function?
Give this one a try later!
, By concatenating each variable with By using a semicolon to separate
a plus sign each variable
By separating each variable By enclosing all variables in
with a comma parentheses
Don't know?
4 of 61
Term
What does this built in Python function do?: print()
Give this one a try later!
performs mathematical calculations reads input from the user
outputs text or variables to the
stores data in a variable
console
Don't know?
, 5 of 61
Term
What does the string slicing operation 'text {::-1] do where text =
"Hello, Python!"?
Give this one a try later!
list: Ordered, mutable sequence;
[1,23]
tuple: Ordered, immutable It returns the remainder of the
sequence; (1,2,3) division of two numbers.
range: represents a range of values;
e.g. range(5)
It reverses the string.
It enhances output formatting by
The 'step' portion of the slice embedding variables in strings.
is negative, indicating the (although 'f' strings are easier to
stride between characters is read)
reversed.
Don't know?
6 of 61
Term
What does this built in Python function do?: int(), float(), str()
Give this one a try later!