• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 14 pages
Exam (elaborations)

WGU D278 Final Exam Prep (Latest Update 2026 / 2027) Scripting and Programming - Foundations | Questions and Verified Answers | 100% Correct | Grade A . PDF

Document preview thumbnail
Preview 2 out of 14 pages

The WGU D278 – Scripting and Programming: Foundations (Final Exam Prep 2026/2027 Edition) is the most comprehensive and up-to-date study resource designed to help students pass the Western Governors University (WGU) Objective Assessment (OA) with confidence. This guide provides realistic exam-style questions, verified 100% correct answers (in bold), and clear, detailed rationales explaining each concept — ensuring both deep understanding and top performance. Aligned with the latest 2026/2027 WGU curriculum updates, this edition thoroughly covers all competencies within the D278 Software Engineering Foundations course, including: Python Programming Fundamentals Control Structures (Loops, Conditionals, Functions) Data Types, Collections, and File Handling Exception Handling and Debugging Object-Oriented Programming (OOP) Concepts Software Design, Testing, and Quality Assurance This prep package is perfect for students enrolled in the College of Information Technology, offering a full-length simulation of the official OA — ideal for mastering exam concepts, improving code comprehension, and achieving a Grade A performance.

Content preview

WGU D278 Final Exam Prep (Latest Update
) Scripting and Programming -
Foundations | Questions and Verified Answers
| 100% Correct | Grade A

Correct answer in bold; short rationale follows.



1. Which of the following is the correct way to create a Python list named nums
with the values 1, 2, and 3?
A. nums = (1, 2, 3)
B. nums = {1, 2, 3}
C. nums = [1, 2, 3]
D. nums = 1, 2, 3
Rationale: Square brackets create lists in Python.



2. What is the type of the expression in Python 3?
A. int
B. float
C. str
D. bool
Rationale: Division / produces a float (1.5) in Python 3.



3. Which operator tests equality in Python?
A. =
B. ==
C. ===
D. :=
Rationale: == compares values; = assigns.

, 4. What is printed by this code?

for i in range(3):
print(i, end="")

A. 1 2 3
B. 012
C. 012
D. 0 1 2
Rationale: range(3) yields 0,1,2; end="" prints without spaces/newlines, so
012.



5. Which data structure provides key-value mapping?
A. List
B. Tuple
C. Dictionary
D. Set
Rationale: Dictionaries map keys to values ({key: value}).



6. What does len("hello") return?
A. 4
B. 5
C. 6
D. Error
Rationale: "hello" has 5 characters.



7. Which statement correctly defines a function that takes one argument x?
A. function f(x):
B. def f(x):
C. func f(x):
D. def f => x:
Rationale: def is used to define functions.

Document information

Uploaded on
October 30, 2025
Number of pages
14
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$25.99

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

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.
studyguidepro
3.6
(58)
Sold
312
Followers
15
Items
2463
Last sold
12 hours ago



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