• 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 3 out of 23 pages
Exam (elaborations)

Wgu D278 Scripting And Programming Foundations Exam Review Questions With Verified Answers And Detailed Explanations. 2026/2027

Document preview thumbnail
Preview 3 out of 23 pages

Wgu D278 Scripting And Programming Foundations Exam Review Questions With Verified Answers And Detailed Explanations. 2026/2027

Content preview

WGU D278 SCRIPTING AND
PROGRAMMING FOUNDATIONS EXAM
REVIEW QUESTIONS WITH VERIFIED
ANSWERS AND DETAILED
EXPLANATIONS. 2026/2027


1. Which phase of the Software Development Life Cycle (SDLC) involves creating the technical

specifications for a system, including data models and pseudocode?

A. Design phase


B. Implementation phase


C. Analysis phase


D. Testing phase


Answer: A


Conceptual Explanation: The Design phase is where developers define the system

architecture and detailed logic, such as pseudocode and database schemas, before actual

coding begins.


2. In a flowchart, which symbol is used to represent a decision point?

A. Rectangle


B. Parallelogram

,C. Diamond


D. Oval


Answer: C


Conceptual Explanation: The diamond shape represents a decision or branching point in

a flowchart, typically containing a boolean expression.


3. What is the primary difference between a compiler and an interpreter?

A. An interpreter translates the entire program before execution, while a compiler

translates line-by-line.


B. A compiler translates the entire source code into machine code before execution, while

an interpreter translates and executes line-by-line.


C. Compilers are only used for low-level languages, while interpreters are used for high-

level languages.


D. There is no difference; the terms are synonymous in modern programming.


Answer: B


Conceptual Explanation: Compilers generate a standalone executable by processing the

whole file, whereas interpreters read and execute code on the fly.


4. Which type of error occurs when a programmer uses a variable that has not been

initialized, leading to a program crash during execution?

A. Syntax error

, B. Logic error


C. Compilation error


D. Runtime error


Answer: D


Conceptual Explanation: A runtime error happens while the program is running, often

caused by operations that are impossible to perform, like accessing a null reference or

dividing by zero.


5. In Boolean logic, which gate outputs true ONLY if both inputs are true?

A. OR


B. XOR


C. NOT


D. AND


Answer: D


Conceptual Explanation: The AND gate requires all inputs to be true to result in a true

output.


6. What is the result of the following pseudocode: x = 10; y = 20; x = y; y = x; Print x, y

A. 10, 20


B. 20, 10

Document information

Uploaded on
October 14, 2026
Number of pages
23
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$15.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.
TheStar
3.7
(140)
Sold
736
Followers
178
Items
28662
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