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 39 pages
Exam (elaborations)

WGU D278 Scripting and Programming Foundations Exam Actual Exam 2026/2027 – Complete Exam-Style Questions | Detailed Rationales – Pass Guaranteed – A+ Graded

Document preview thumbnail
Preview 4 out of 39 pages

WGU D278 Scripting and Programming Foundations Exam Actual Exam 2026/2027 – Real-Style Questions with Answers | 100% Correct | Programming Fundamentals, Variables, Data Types, Control Structures, Functions | Graded A+ Verified | Scripting Languages, Syntax, Logic, Debugging, Problem-Solving, Algorithms | Detailed Rationales | Verified Correct Answers – Pass Guaranteed – Instant Download

Content preview

D278 Scripting and Programming - Foundations (Latest 2026/2027 Update) | Questions and Verified Answers| 100% Correct| Grade A 2026/2027 | Page 1 | Passing Score



WESTERN GOVERNORS UNIVERSITY


WGU D278 Scripting and Programming - Foundations
(Latest 2026/2027 Update) | Questions and Verified Answers| 100% Correct| Grade A
2026/2027 Edition - Official Exam 2026/2027
75 80% N/A
QUESTIONS PASSING SCORE RECERTIFICATION

TABLE OF CONTENTS



Section 1 Programming Fundamentals and Logic Q1-Q15


Section 2 Data Types, Variables, and Operators Q16-Q30


Section 3 Control Structures (Loops and Conditionals) Q31-Q45


Section 4 Functions and Modular Programming Q46-Q60


Section 5 Arrays, Lists, and Basic Data Structures Q61-Q75




Instructions: Select the single best answer for each question. This exam is designed for WGU D278 Scripting and Programming -




WGU D278 Scripting and Programming - Foundations - 2026/2027 | Passing Score: 80% | Page 1 of 39

,SECTION 1 | Programming Fundamentals and Logic | Q1-Q15 | WGU D278 Scripting and Programming - Foundations 2026/2027


Q1 Question 1 of 75
A software developer is analyzing a program that takes user input and produces output. The
developer traces the flow from input through processing to output. This process describes
which fundamental concept?

A. Compilation
B. Algorithm design
C. The IPO model
D. Syntax analysis


Correct Answer: C

Rationale:
The IPO (Input-Processing-Output) model describes the fundamental flow of data through a program.
Tracing from input through processing to output directly maps to this foundational programming concept,
distinguishing it from algorithm design or compilation.




Q2 Question 2 of 75
A student writes a step-by-step procedure to solve a problem before translating it into code.
The student is creating which of these?

A. A syntax diagram
B. An algorithm or pseudocode
C. A compiler directive
D. A machine code instruction


Correct Answer: B

Rationale:
Writing a step-by-step procedure before coding is the definition of creating an algorithm or pseudocode. This
planning step separates the logic from the syntax of any specific programming language and helps ensure
correctness before implementation.




WGU D278 Scripting and Programming - Foundations - 2026/2027 | Passing Score: 80% | Page 2 of 39

,SECTION 1 | Programming Fundamentals and Logic | Q1-Q15 | WGU D278 Scripting and Programming - Foundations 2026/2027


Q3 Question 3 of 75
A programmer notices that a program compiles successfully but produces incorrect results
when run. This type of error is best described as:

A. A syntax error
B. A logic error
C. A runtime error
D. A compilation error


Correct Answer: B

Rationale:
A logic error occurs when a program compiles without issues but produces incorrect results because the
algorithm or reasoning is flawed. Syntax and compilation errors prevent the program from compiling, while
runtime errors cause the program to crash during execution.




Q4 Question 4 of 75
A development team uses a structured approach to problem solving that involves defining the
problem, planning the solution, coding, and testing. This systematic methodology is called:

A. Agile development
B. The program development lifecycle
C. Object-oriented analysis
D. Rapid application development


Correct Answer: B

Rationale:
The program development lifecycle (PDLC) is the systematic approach of defining the problem, planning the
solution, coding, and testing. Agile and rapid application development are specific methodologies within
software engineering, not the fundamental lifecycle itself.




WGU D278 Scripting and Programming - Foundations - 2026/2027 | Passing Score: 80% | Page 3 of 39

,SECTION 1 | Programming Fundamentals and Logic | Q1-Q15 | WGU D278 Scripting and Programming - Foundations 2026/2027


Q5 Question 5 of 75
A programmer writes the statement 'result = ' in a program. When the program executes
this line, it will most likely produce:

A. A syntax error at compile time
B. A logic error that goes undetected
C. A runtime error or exception
D. An ignorable notification


Correct Answer: C

Rationale:
Dividing by zero is detected during program execution, not at compile time, resulting in a runtime error or
exception. The syntax is valid so no compile-time error occurs, and the error is serious enough to halt
execution rather than being a mere notification.




Q6 Question 6 of 75
A student creates a flowchart with rectangles for processes, diamonds for decisions, and
parallelograms for input/output. These standard shapes are part of which programming tool?

A. UML class diagrams
B. Flowchart notation
C. Pseudocode conventions
D. Entity-relationship diagrams


Correct Answer: B

Rationale:
Standard flowchart notation uses rectangles for processes, diamonds for decisions, and parallelograms for
input/output. UML class diagrams and entity-relationship diagrams serve different purposes and use
different notation systems entirely.




WGU D278 Scripting and Programming - Foundations - 2026/2027 | Passing Score: 80% | Page 4 of 39

Document information

Uploaded on
June 5, 2026
Number of pages
39
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$17.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
(156)
Sold
1202
Followers
205
Items
8720
Last sold
9 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