WGU D522 Python for IT Automation Objective Assessment OA - Current Edition Solutions
WGU D522 Python for IT Automation Objective Assessment OA - Current Edition Solutions What are the traits of Imperative/procedural programming? - answer - Focuses on describing a sequence of steps to perform a task What are the traits of Object-Oriented Programming (OOP)? - answer - Organize code around objects, which encapsulate data and behavior. What are the traits of Functional Programming? - answer - emphasizes the use of functions and immutable data for computation. What are the traits of Declarative Programming? - answer - describes what the program should accomplish without specifying how to achieve it. What are the traits of Event-Driven Programming? - answer - Reacts to events and user actions, triggering corresponding functions. What are the traits of Logic Programming? - answer - defines a set of logical conditions and lets the system deduce solutions. What does Python syntax refer to? - answer - The set of rules that dictate the combinations of symbols and keywords that form valid Python programs What is the purpose of indentation in Python? - answer - To define blocks of code Why might a programmer use comments for 'Preventing Execution'? - answer - To temporarily disable lines or blocks of code What is the primary use of whitespace in Python? - answer - To define the structure and hierarchy of the code 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 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 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
Document information
- Uploaded on
- November 14, 2026
- Number of pages
- 6
- Written in
- 2026/2027
- Type
- Exam (elaborations)
- Contains
- Questions & answers