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 4 out of 38 pages
Exam (elaborations)

WGU D278 Final Exam 2026/2027 | Scripting & Programming Foundations | Verified Q&A | Grade A

Document preview thumbnail
Preview 4 out of 38 pages

Pass the WGU D278 Scripting and Programming – Foundations Final Exam 2026/2027 with this comprehensive prep guide of verified questions and answers. This resource contains actual exam-style questions with accurate answers and detailed rationales covering programming fundamentals—including variables and data types, operators and expressions, control structures (conditionals and loops), functions and procedures, arrays and data structures, algorithms and problem-solving, object-oriented programming concepts, debugging and testing, and basic scripting syntax. Each solution is verified and Grade A to mirror the official WGU D278 objective assessment format. With authentic content and our Pass Guarantee, you will ace your WGU D278 final exam with confidence. Download now and pass Scripting and Programming – Foundations!

Content preview

WGU D 278 · FINAL E XAM PRE P




Scripting and
Programming
Foundations
A comprehensive final examination covering programming
fundamentals, control structures, functions, data
structures, file input/output, object-oriented programming,
and professional best practices — every question includes
a verified answer and a detailed rationale.




120 Questions | 8 Sections
Questions and Verified Answers | 100% Correct | Grade A
Latest Update




W G U D 2 7 8 E X A M I N A T I O N P R E PA R A T I O N S E R I E S

,WGU D278 Final Exam Prep | Scripting and Programming - Foundations Edition




WGU D278 FINAL EXAM PREP (LATEST UPDATE )
SCRIPTING AND PROGRAMMING - FOUNDATIONS | QUESTIONS AND
VERIFIED ANSWERS | 100% CORRECT | GRADE A

120 Questions | 8 Sections | Verified Answers with Detailed Rationales | Cognitive Mix: 20% Recall / 50% Application /
30% Analysis



Section 1: Programming Fundamentals & Concepts Questions 1-15



Q1: Which statement most accurately describes how an interpreted language is executed?
A. The entire source code is translated into machine code before the program runs
B. The source code is read and executed statement by statement at runtime by an interpreter
*[CORRECT]*
C. The source code is executed directly by the CPU with no translation of any kind
D. The source code must be linked with system libraries before every execution
Correct Answer: B
Rationale: In the WGU D278 unit on programming language types, interpreted languages such as Python and
JavaScript are processed by an interpreter that translates and executes code line by line at runtime. Option A
describes compilation, option C wrongly skips the interpreter layer entirely, and option D describes the linking
step used in compiled toolchains, not interpretation.

Q2: A game studio needs a program that will run with the highest possible execution speed on a fixed
hardware platform. Which characteristic of compiled languages makes them the better choice for this
requirement?
A. They are translated into native machine code before runtime, eliminating per-line translation overhead
during execution *[CORRECT]*
B. They allow easier debugging of runtime errors because the source code is always visible to the
interpreter
C. They require no compiler or linker toolchain, which simplifies the build process
D. They run on any platform without modification or recompilation of the source file
Correct Answer: A
Rationale: Compiled languages such as C and C++ are converted entirely into machine code ahead of time, so at
runtime there is no interpreter translating statements, which yields faster execution (WGU D278: compiled vs.
interpreted comparison). Options B and C describe characteristics of interpreted languages, and option D
describes platform independence associated with interpreted languages or bytecode systems, not native
compilation.




Questions and Verified Answers | Grade A 1

,WGU D278 Final Exam Prep | Scripting and Programming - Foundations Edition




Q3: What is pseudocode in the context of algorithm design?
A. A special programming language that runs only inside virtual machines
B. Encrypted source code that hides a program's logic from unauthorized users
C. An informal, structured description of algorithm logic written in plain language before coding begins
*[CORRECT]*
D. A low-level assembly language used to write device drivers
Correct Answer: C
Rationale: The D278 course defines pseudocode as an informal planning tool that expresses an algorithm's steps
in structured human language so logic can be designed and reviewed before being committed to real syntax. It is
not executable, so options A and D are incorrect, and it has nothing to do with encryption as suggested in option
B.

Q4: In a standard program flowchart, which symbol is used to represent a decision point such as a yes/no
question?
A. Rectangle
B. Diamond *[CORRECT]*
C. Oval
D. Parallelogram
Correct Answer: B
Rationale: Per the flowchart conventions taught in D278, a diamond represents a decision with branching paths,
a rectangle represents a process step, an oval marks the start or end terminal, and a parallelogram represents input
or output. Recognizing these symbols is a stated course competency for reading and constructing program
flowcharts.

Q5: Which sequence lists the phases of the program development life cycle in the correct order?
A. Code the program, design the solution, define the problem, test and maintain
B. Test the program, write the code, design the solution, deploy immediately
C. Deploy, document, debug, design
D. Define the problem, design the solution, write the code, test and debug, then maintain
*[CORRECT]*
Correct Answer: D
Rationale: The D278 program development life cycle (PDLC) progresses from problem definition, through
design and implementation, into testing and ongoing maintenance. Option A starts at coding before the problem is
even understood, option B tests before any code exists, and option C is simply an unrelated jumble of activities.

Q6: In programming terminology, syntax refers to which of the following?
A. The meaning or intent behind the program's statements
B. The grammar rules that dictate how statements in a language must be written *[CORRECT]*
C. The speed at which the program executes on a given CPU
D. The memory layout assigned to the program's variables
Correct Answer: B
Rationale: D278 distinguishes syntax (the formal grammar rules of a language) from semantics (the meaning of
statements). A syntax violation, such as a missing colon or parenthesis, prevents the code from being translated at
all, while semantic errors produce programs that run but behave incorrectly, which is exactly the distinction
option A confuses.




Questions and Verified Answers | Grade A 2

, WGU D278 Final Exam Prep | Scripting and Programming - Foundations Edition




Q7: A data analyst wants to quickly automate a weekly spreadsheet report and does not want to manage a
compiler or build step. Which type of language best fits this scenario?
A. A compiled systems language such as C++
B. A low-level assembly language
C. A scripting language such as Python *[CORRECT]*
D. A hardware description language such as VHDL
Correct Answer: C
Rationale: Scripting languages like Python are interpreted, require no explicit compile-and-link step, and excel at
rapid automation tasks, which is precisely the profile emphasized in the D278 scripting languages unit. C++ and
assembly demand heavy toolchain management, and VHDL targets hardware design rather than office
automation.

Q8: A programmer faces a large problem: build a full billing system. She breaks it into smaller
sub-problems such as customer lookup, invoice calculation, and report printing. Which
computational-thinking strategy does this illustrate?
A. Decomposition *[CORRECT]*
B. Pattern recognition
C. Abstraction
D. Brute-force search
Correct Answer: A
Rationale: Decomposition is the computational-thinking practice of dividing a complex problem into smaller,
manageable sub-problems, a foundational D278 problem-solving competency. Pattern recognition would involve
spotting similarities across problems, abstraction means hiding irrelevant detail, and brute-force search is an
algorithmic technique, not a problem-framing strategy.

Q9: What is the primary purpose of comments in source code?
A. They are executed by the interpreter to generate automatic documentation pages
B. They force the program to pause so a debugger can inspect variables
C. They reserve memory locations for values used later in the program
D. They explain the code to human readers and are ignored by the compiler or interpreter
*[CORRECT]*
Correct Answer: D
Rationale: Comments exist purely for human maintainers; the translator strips them out, so they have no effect
on execution or memory, exactly as D278's documentation unit states. Option A confuses comments with
documentation generators that parse them, option B describes breakpoints, and option C describes variable
declaration.

Q10: Which statement about machine code is correct?
A. It is a human-readable outline of an algorithm's steps
B. It consists of binary CPU instructions that the processor executes directly *[CORRECT]*
C. It is identical to the bytecode executed by a Java virtual machine
D. It requires an interpreter to translate it at runtime
Correct Answer: B
Rationale: Machine code is the lowest-level representation of a program, made of binary instructions fetched and
executed natively by the CPU (D278: source code, bytecode, and machine code). Bytecode, mentioned in option
C, is an intermediate representation that still needs a virtual machine, and options A and D describe higher-level
or interpreted forms of code.



Questions and Verified Answers | Grade A 3

Document information

Uploaded on
September 20, 2026
Number of pages
38
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$20.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.
NURSELORRIE
4.0
(12)
Sold
51
Followers
13
Items
1014
Last sold
1 day 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