WGU D522 python for It Automation(SKO1) EXAM
AND PRACTICE EXAM NEWEST ACTUAL EXAM 2026
What does Python use to define the scope of control flow statements
and structures like functions and classes? - ANSWER -Indentation
What is the purpose of the input() function in Python? - ANSWER -To
capture user input and store it as a string
What does the format() method do in Python? - ANSWER -It enhances
output formatting by embedding variables in strings. (although 'f'
strings are easier to read)
What is the purpose of the Code Editor in a Python IDE? - ANSWER -To
provide a text editor designed for Python, offering features like syntax
highlighting, code completion, and indentation.
What does this built in Python function do?: print() - ANSWER -outputs
text or variables to the console
What does this built in Python function do?: input() - ANSWER -reads
user input from the console
,2|Page
What does this built in Python function do?: len() - ANSWER -
determines the length of a sequence (string, list, tuple)
What does this built in Python function do?: type() - ANSWER -returns
the type of an object
What does this built in Python function do?: int(), float(), str() -
ANSWER -converts values to integers, floats, or strings; respectively
What does this built in Python function do?: max(), min() - ANSWER -
returns the maximum or minimum value from a sequence
What does this built in Python function do?: sum() - ANSWER -
calculates the sum of elements in a sequence
What does this built in Python function do?: abs() - ANSWER -returns
the absolute value of a number
What does this built in Python function do?: range() - ANSWER -
generates a sequence of numbers
What does this built in Python function do?: sorted() - ANSWER -
returns a sorted list from an iterable
,3|Page
What does this built in Python function do?: any(), all() - ANSWER -
checks if any or all elements in an iterable are true
What does this built in Python function do?: map(), filter() - ANSWER -
applies a function to elements or filters elements based on a function
What does this built in Python function do?: open(), read(), write() -
ANSWER -handles file I/O operations
What does this built in Python function do?: dir() - ANSWER -lists the
names in the current scope or attributes of an object
What does this built in Python function do?: help() - ANSWER -provides
help information about an object or Python
What is the primary characteristic of Python variables? - ANSWER -
Variables are created as soon as a value is assigned to them.
What are the 5 Variable name rules in Python? - ANSWER -1. can only
contain letters, numbers, or an underscore.
2. MUST start with either a letter or underscore
3. Cannot start with a number
4. Cannot contain special characters.
5. Cannot be a Python keyword (such as: and, as, def, else, etc)
, 4|Page
What are the 3 common naming conventions used in Python, and what
is their format? - ANSWER -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.
What happens if the number of variables is not equal to the number of
values in a Python assignment statement? - ANSWER -An error will
occur
What does unpacking involve in Python? - ANSWER -Extracting
elements from iterable objects and assigning them to individual
variables
What is the result of using the '+' operator to output multiple Python
variables of different types? - ANSWER -A Python error occurs. (must
use variables of the same type)
How can multiple Python variables of different types be output using
the print() function? - ANSWER -By separating each variable with a
comma