100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU D278 Comprehensive Final Real Exam 2025 Scripting and Programming – Foundations | Full Questions with Verified Answers & Detailed Rationales . pdf

Rating
-
Sold
-
Pages
44
Grade
A+
Uploaded on
30-10-2025
Written in
2025/2026

The WGU D278 – Scripting and Programming: Foundations (2025 Edition) is a complete and up-to-date exam preparation guide created to help students excel in the Western Governors University (WGU) Objective Assessment (OA) for Software Engineering Foundations. This comprehensive final exam prep includes realistic, WGU-aligned questions, verified correct answers (highlighted in bold), and clear, detailed rationales for each question. Designed to mirror the actual OA testing environment, it strengthens both conceptual understanding and hands-on programming skills essential for success in D278. The content follows the latest 2025 WGU curriculum updates and covers every core domain required for competency in scripting and programming fundamentals, including: Python Programming Basics Control Structures (Loops, Conditionals, Functions) Data Types, Lists, and Dictionaries File Handling and Exceptions Object-Oriented Programming (OOP) Concepts Debugging, Testing, and Problem-Solving Strategies Perfect for students in the College of Information Technology, this guide serves as a realistic simulation of the D278 Comprehensive Final Exam, providing an effective and reliable way to assess knowledge and readiness before the official OA.

Show more Read less
Institution
Wgu
Course
WGU D278











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

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

Subjects

  • wgu d278 exam 2025

Content preview

1|Page



WGU D278 Comprehensive Final Real Exam
2025 | Scripting and Programming – Foundations
(Full Questions with Answers)

Overview

This comprehensive 2025 WGU D278 Scripting and Programming –
Foundations Practice Exam provides a complete 200-question review designed to
mirror the knowledge and skill areas tested in the official WGU final assessment.
Each question is paired with correct answers in bold and clear Rationales to
ensure strong concept retention and exam readiness.

This updated edition focuses on practical coding proficiency in Python, problem-
solving logic, and the core programming foundations required for success in
software development and scripting environments.




1. What is the output of the following code?

x = 5
y = 10
print(x + y)

A) 15
B) 15
C) 510
D) Error

Rationale: Addition between integers returns their sum, 15.



2. Which of the following is a valid variable name in Python?

,2|Page


A) 2ndName
B) my-name
C) my_name
D) class

Rationale: Variables cannot start with a digit or use hyphens. class is a
reserved keyword.



3. What is the output?

x = "5"
y = 2
print(x * y)

A) 10
B) Error
C) 55
D) '10'

Rationale: String multiplied by integer repeats the string — "5" * 2 = "55".



4. Which data type is immutable in Python?

A) List
B) Dictionary
C) Tuple
D) Set

Rationale: Tuples cannot be changed after creation.



5. What is the correct output?

for i in range(3):
print(i)

,3|Page


A) 1 2 3
B) 0 1 2
C) 0 1 2 3
D) 3

Rationale: range(3) generates 0, 1, 2.



6. Which keyword defines a function in Python?

A) func
B) def
C) define
D) function

Rationale: def is the keyword used to declare a function.



7. What is printed by this code?

def greet(name="Student"):
print("Hello", name)

greet()

A) Error
B) Hello
C) Hello Student
D) Hello None

Rationale: Default argument is used when no argument is passed.



8. What is the output?

nums = [2, 4, 6]
nums.append(8)
print(nums)

, 4|Page


A) [2, 4, 6]
B) [2, 4, 6, 8]
C) [8, 6, 4, 2]
D) [2, 4, 6][8]

Rationale: .append() adds an element to the end of a list.



9. What is the result of bool("")?

A) True
B) False
C) None
D) Error

Rationale: Empty strings evaluate to False in Boolean context.



10. Which symbol is used for integer division in Python?

A) /
B) //
C) %
D) **

Rationale: // returns integer (floor) division results.




11. What is the output of the following code?

x = 3
if x > 2:
print("High")
else:
print("Low")

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.
studyguidepro NURSING
View profile
Follow You need to be logged in order to follow users or courses
Sold
32
Member since
2 months
Number of followers
2
Documents
1150
Last sold
1 day ago
verified exams

Updated exams .Actual tests 100% verified.ATI,NURSING,PMHNP,TNCC,USMLE,ACLS,WGU AND ALL EXAMS guaranteed success.Here, you will find everything you need in NURSING EXAMS AND TESTBANKS.Contact us, to fetch it for you in minutes if we do not have it in this shop.BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied. **Ace Your Exams with Confidence!**

3.0

4 reviews

5
2
4
0
3
0
2
0
1
2

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

Frequently asked questions