Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

WGU D522 Python for IT Automation OA Actual Exam 2026/2027 – Verified Q&A – 100% Correct answers

Rating
-
Sold
-
Pages
46
Uploaded on
16-05-2026
Written in
2025/2026

WGU D522 Python for IT Automation OA Actual Exam 2026/2027 – Verified Q&A – 100% Correct answers

Institution
Course

Content preview

WGU D522 Python for IT Automation
OA Actual Exam 2026/2027 – Verified
Q&A – 100% Correct answers



QUESTION 1
What are the traits of Imperative/Procedural programming?
A) Emphasizes the use of functions and immutable data for computation
B) Organizes code around objects, which encapsulate data and behavior
C) Focuses on describing a sequence of steps to perform a task
D) Describes what the program should accomplish without specifying how
Correct ,,,answer,,,: C) Focuses on describing a sequence of steps to perform a
task
Rationale: Imperative/procedural programming is characterized by a step-by-step
approach where the programmer explicitly defines the sequence of operations. It
uses statements that change program state through assignment statements and
focuses on "how" to achieve a result .


QUESTION 2
What are the traits of Object-Oriented Programming (OOP)?
A) Focuses on describing a sequence of steps to perform a task
B) Organizes code around objects, which encapsulate data and behavior

,C) Emphasizes the use of functions and immutable data for computation
D) Defines a set of logical conditions and lets the system deduce solutions
Correct ,,,answer,,,: B) Organizes code around objects, which encapsulate data
and behavior
Rationale: Object-Oriented Programming organizes code using objects that
contain both data (attributes) and behaviors (methods). Key principles include
encapsulation, inheritance, and polymorphism .


QUESTION 3
What are the traits of Functional Programming?
A) Focuses on describing a sequence of steps to perform a task
B) Organizes code around objects, which encapsulate data and behavior
C) Emphasizes the use of functions and immutable data for computation
D) Reacts to events and user actions, triggering corresponding functions
Correct ,,,answer,,,: C) Emphasizes the use of functions and immutable data
for computation
Rationale: Functional programming treats computation as the evaluation of
mathematical functions. It avoids changing state and mutable data, emphasizing
pure functions that produce outputs based solely on inputs .


QUESTION 4
What are the traits of Declarative Programming?
A) Focuses on describing a sequence of steps to perform a task
B) Organizes code around objects, which encapsulate data and behavior
C) Emphasizes the use of functions and immutable data for computation
D) Describes what the program should accomplish without specifying how to
achieve it
Correct ,,,answer,,,: D) Describes what the program should accomplish
without specifying how to achieve it

,Rationale: Declarative programming focuses on the desired outcome rather than
the step-by-step procedure. SQL queries are a classic example—you specify what
data you want, not how to retrieve it .


QUESTION 5
What are the traits of Event-Driven Programming?
A) Focuses on describing a sequence of steps to perform a task
B) Organizes code around objects, which encapsulate data and behavior
C) Reacts to events and user actions, triggering corresponding functions
D) Defines a set of logical conditions and lets the system deduce solutions
Correct ,,,answer,,,: C) Reacts to events and user actions, triggering
corresponding functions
Rationale: Event-driven programming uses events (mouse clicks, keyboard input,
system events) to trigger callback functions. The program flow is determined by
events rather than a predetermined sequence .


QUESTION 6
What are the traits of Logic Programming?
A) Focuses on describing a sequence of steps to perform a task
B) Organizes code around objects, which encapsulate data and behavior
C) Emphasizes the use of functions and immutable data for computation
D) Defines a set of logical conditions and lets the system deduce solutions
Correct ,,,answer,,,: D) Defines a set of logical conditions and lets the system
deduce solutions
Rationale: Logic programming (exemplified by Prolog) allows programmers to
declare logical relationships and facts, then the system automatically deduces
solutions through inference. It focuses on "what" is true rather than "how" to
solve .

, QUESTION 7
How does imperative programming differ from functional programming in terms
of task execution?
A) Imperative programming uses objects, while functional programming uses
variables
B) Imperative programming is more efficient than functional programming
C) Imperative programming focuses on a sequence of steps, while functional
programming emphasizes the use of functions and avoids changing state
D) Imperative programming does not allow for loops, while functional
programming does
Correct ,,,answer,,,: C) Imperative programming focuses on a sequence of
steps, while functional programming emphasizes the use of functions and
avoids changing state
Rationale: Imperative programming changes program state through assignment
statements, while functional programming avoids mutable state and side effects,
focusing instead on function composition and pure functions .


QUESTION 8
Describe how Logic Programming differs from other programming paradigms in
terms of problem-solving.
A) Logic Programming focuses on defining logical conditions rather than
specifying a sequence of operations
B) Logic Programming emphasizes the use of loops and iterations
C) Logic Programming is primarily concerned with data manipulation
D) Logic Programming uses imperative commands to control program flow
Correct ,,,answer,,,: A) Logic Programming focuses on defining logical
conditions rather than specifying a sequence of operations
Rationale: Logic Programming allows you to define a set of logical conditions and
relationships, and the system automatically deduces solutions. This contrasts with
imperative programming where you must specify step-by-step procedures .

Written for

Institution
Course

Document information

Uploaded on
May 16, 2026
Number of pages
46
Written in
2025/2026
Type
Exam (elaborations)
Contains
Unknown

Subjects

$25.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectsam Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
286
Member since
3 year
Number of followers
228
Documents
1945
Last sold
8 hours ago

3.6

79 reviews

5
39
4
10
3
7
2
5
1
18

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions