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
Document preview thumbnail
Preview 3 out of 27 pages
Exam (elaborations)

WGU D278 Scripting & Programming Foundations Final Exam Prep Actual 2026/2027 – Complete Exam-Style Questions | 100% Verified – Pass Guaranteed – A+ Graded

Document preview thumbnail
Preview 3 out of 27 pages

WGU D278 Scripting & Programming Foundations Final Exam Prep Actual 2026/2027 – 100% Correct Answers | Real-Style Questions with Answers | Programming Logic, Data Types, Control Structures, Functions, Arrays | Graded A+ Verified | Object-Oriented Concepts, Debugging, Algorithms, Pseudocode, Python | Detailed Rationales | Verified Correct Answers – Pass Guaranteed – Instant Download

Content preview

WGU D278 Final Exam Prep (Latest Update 2026/2027)



OBJECTIVE ASSESSMENT - EXAM


WGU D278 Final Exam Prep
Scripting and Programming - Foundations


QUESTIONS VERIFIED ANSWERS EDITION PASSING SCORE

75 100% 2026/2027 80%


TOPICS COVERED
* Programming Fundamentals & Logic * Functions, Modules & Error Handling
* Data Types, Variables & Expressions * Object-Oriented Programming & Data Structures
* Control Structures & Algorithms




COVER PAGE - 1

, Section 1: Programming Fundamentals & Logic Section 1 of 5




QUESTION 1
A junior developer is writing pseudocode to calculate the total cost of items in a shopping cart. She
needs to break down the problem into smaller, manageable steps before writing actual code. Which
programming concept involves creating a step-by-step plan or blueprint that outlines the logic and
sequence of operations before implementation?
A. Debugging
B. Algorithm Design
C. Code Compilation
D. Syntax Checking
Correct Answer: B
Rationale:
Algorithm Design is the process of creating a step-by-step plan or blueprint that outlines the logic and sequence of operations
to solve a problem. Debugging identifies and fixes errors in existing code, while compilation translates source code into
machine code.



QUESTION 2
A student is learning about how computers process information and encounters the term that describes
the fundamental building blocks of digital data represented as either 0 or 1. Which binary digit serves as
the smallest unit of data in computing and forms the basis of all digital information?
A. Byte
B. Bit
C. Nibble
D. Word
Correct Answer: B
Rationale:
A Bit (binary digit) is the smallest unit of data in computing, representing either 0 or 1. A byte consists of 8 bits, a nibble is 4
bits, and a word is a fixed-size group of bits that varies by processor architecture.



QUESTION 3
A software team is documenting a new inventory management system. They need to create visual
representations showing how data flows between modules, how users interact with the system, and how
processes are sequenced. Which type of diagram uses standardized symbols to represent processes,
decisions, and data flow in a program?
A. UML Class Diagram
B. Flowchart
C. Entity-Relationship Diagram
D. Network Topology Diagram
Correct Answer: B
Rationale:
A Flowchart uses standardized symbols to represent the sequence of operations, decisions, and data flow in a program or

, process. UML class diagrams show object-oriented structure, while entity-relationship diagrams model da


QUESTION 4
A developer is analyzing a payroll calculation program and notices that the gross pay is computed by
multiplying hours worked by hourly rate, then deducting taxes based on tax brackets, and finally adding
any overtime bonuses. Which programming concept describes the transformation of input data through a
series of defined operations to produce output?
A. Data Abstraction
B. Input-Process-Output (IPO) Model
C. Polymorphism
D. Encapsulation
Correct Answer: B
Rationale:
The Input-Process-Output (IPO) Model describes how programs receive input, process it through defined operations, and
produce output. Data abstraction hides implementation details, while polymorphism and encapsulation are object-oriented
concepts unrelated to the basic data flow model.



QUESTION 5
A computer science instructor explains that before a program written in Python can execute, the source
code must be translated into instructions the computer's processor can understand. Which process
converts high-level programming language code into machine-readable instructions?
A. Interpretation
B. Compilation
C. Encryption
D. Compression
Correct Answer: B
Rationale:
Compilation translates high-level source code into machine code or an intermediate form that the computer can execute.
Interpretation executes code line by line without producing a separate machine code file. Encryption and compression are
unrelated to code translation.



QUESTION 6
A programmer is reviewing legacy code and discovers a section where the same sequence of five
operations is repeated twelve times with only the variable names changing. Which programming principle
recommends writing the logic once and reusing it rather than duplicating code throughout the program?
A. Inheritance
B. DRY Principle (Don't Repeat Yourself)
C. Recursion
D. Parallel Processing
Correct Answer: B
Rationale:
The DRY Principle (Don't Repeat Yourself) advocates writing logic once and reusing it through functions, methods, or modules
rather than duplicating code. Inheritance is an OOP concept for code reuse between classes, while recursion is a technique for
solving problems by breaking them into smaller instances.

Document information

Uploaded on
July 21, 2026
Number of pages
27
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$15.49

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.
STUVIAACTUALEXAMS
3.5
(157)
Sold
1223
Followers
208
Items
8852
Last sold
15 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