- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 6 study documents about .
6 results
Exam (elaborations)
WGU D522 Python for IT Automation Unit 5 Text 
Processing, Regex, JSON, APIs and Network 
Automation — Questions & Answers
NewWGU D522 Python for IT Automation Unit 5 Text 
Processing, Regex, JSON, APIs and Network 
Automation — Questions & Answers 
1. What module provides regular expressions in Python? 
A. regex (built-in) 
B. rex 
C. pattern 
D. re 
Answer: D. re 
Rationale: Standard library. 
2. What is a regular expression? 
A. A pattern used to match text 
B. A loop 
C. A data type 
D. A file format 
Answer: A. A pattern used to match text 
Rationale: Regex.
Exam (elaborations)
WGU D522 Python for IT Automation Unit 1 
Python Fundamentals - Syntax, Data Types, 
Operators and Strings — Questions & Answ
PopularWGU D522 Python for IT Automation Unit 1 
Python Fundamentals - Syntax, Data Types, 
Operators and Strings — Questions & Answers 
1. What is Python? 
A. A high-level, interpreted, general-purpose programming language 
B. A compiled low-level language 
C. A database 
D. An operating system 
Answer: A. A high-level, interpreted, general-purpose programming language 
Rationale: Created by Guido van Rossum. 
2. Why is Python popular for IT automation? 
A. It only runs on Windows 
B. It requires no...
Exam (elaborations)
WGU D522 Python for IT Automation Unit 3 
Functions, Modules, Packages and Error 
Handling — Questions & Answers
NewWGU D522 Python for IT Automation Unit 3 
Functions, Modules, Packages and Error 
Handling — Questions & Answers 
1. What keyword defines a function in Python? 
A. function 
B. fun 
C. lambda only 
D. def 
Answer: D. def 
Rationale: Function definition. 
2. What does a function return if it has no return statement? 
A. None 
B. 0 
C. An empty string 
D. An error 
Answer: A. None 
Rationale: Implicit None.
Exam (elaborations)
WGU D522 Python for IT Automation Unit 2 
Data Structures and Control Flow — Questions 
& Answers
NewWGU D522 Python for IT Automation Unit 2 
Data Structures and Control Flow — Questions 
& Answers 
1. What is a list in Python? 
A. An immutable sequence 
B. An unordered set 
C. An ordered, mutable collection of items 
D. A key-value mapping 
Answer: C. An ordered, mutable collection of items 
Rationale: Square brackets. 
2. What is a tuple? 
A. A mutable list 
B. An ordered, immutable collection 
C. A key-value mapping 
D. An unordered set 
Answer: B. An ordered, immutable collection 
Ration...
Exam (elaborations)
WGU D522 Python for IT Automation Unit 6 
Testing, Debugging, Version Control and 
Automation Best Practices — Questions & 
Answers
NewWGU D522 Python for IT Automation Unit 6 
Testing, Debugging, Version Control and 
Automation Best Practices — Questions & 
Answers 
1. What is software testing? 
A. Writing documentation 
B. Deploying code 
C. Installing packages 
D. Checking that code behaves as expected 
Answer: D. Checking that code behaves as expected 
Rationale: Quality assurance. 
2. What is a unit test? 
A. A test of the whole system 
B. A test of a single small piece of code, like one function 
C. A user survey 
D. A ...
Exam (elaborations)
WGU D522 Python for IT Automation Unit 4 
Files, the Operating System and System 
Automation — Questions & Answers
NewWGU D522 Python for IT Automation Unit 4 
Files, the Operating System and System 
Automation — Questions & Answers 
1. What function opens a file in Python? 
A. file() 
B. read() 
C. open() 
D. load() 
Answer: C. open() 
Rationale: Built-in. 
2. What does the mode 'r' mean in open()? 
A. Write 
B. Append 
C. Binary 
D. Read (default) 
Answer: D. Read (default) 
Rationale: File modes.