WGU D278 - SCRIPTING AND
PROGRAMMING FOUNDATIONS EXAM
PREPARATION QUESTIONS WITH
VERIFIED ANSWERS 2026/2027
1. Which term describes a step-by-step procedure for solving a problem or accomplishing a
task?
A. Function
B. Variable
C. Compiler
D. Algorithm
Answer: D
Conceptual Explanation: An algorithm is a specific set of instructions or a step-by-step
process used to perform a calculation or solve a problem.
2. In a flowchart, which shape is typically used to represent a decision point?
A. Rectangle
B. Oval
C. Diamond
D. Parallelogram
,Answer: C
Conceptual Explanation: A diamond represents a decision (like an if-then-else condition),
while rectangles are for processes and parallelograms are for input/output.
3. Which phase of the Software Development Life Cycle (SDLC) involves defining the
hardware and software architecture?
A. Analysis
B. Testing
C. Implementation
D. Design
Answer: D
Conceptual Explanation: The Design phase focuses on how the system will work,
including architecture, data models, and interface design.
4. What is the primary difference between a compiler and an interpreter?
A. A compiler executes code line by line, while an interpreter translates the whole program
at once.
B. An interpreter is only used for low-level languages, while a compiler is for high-level.
C. There is no difference; the terms are synonymous.
D. A compiler translates the entire source code into machine code before execution, while
an interpreter translates and executes it line by line.
, Answer: D
Conceptual Explanation: Compilers convert the whole script into an executable file,
whereas interpreters translate the code on the fly during runtime.
5. Which of the following is a characteristic of a high-level programming language?
A. It is written in binary (0s and 1s).
B. It interacts directly with the computer’s CPU registers without abstraction.
C. It does not require a compiler or interpreter.
D. It is easily understood by humans and uses English-like keywords.
Answer: D
Conceptual Explanation: High-level languages like Python or Java are designed to be
human-readable, abstracting away the complex hardware details.
6. Which data type would be most appropriate for storing the value 3.14?
A. Integer
B. Boolean
C. Floating-point
D. String
Answer: C
PROGRAMMING FOUNDATIONS EXAM
PREPARATION QUESTIONS WITH
VERIFIED ANSWERS 2026/2027
1. Which term describes a step-by-step procedure for solving a problem or accomplishing a
task?
A. Function
B. Variable
C. Compiler
D. Algorithm
Answer: D
Conceptual Explanation: An algorithm is a specific set of instructions or a step-by-step
process used to perform a calculation or solve a problem.
2. In a flowchart, which shape is typically used to represent a decision point?
A. Rectangle
B. Oval
C. Diamond
D. Parallelogram
,Answer: C
Conceptual Explanation: A diamond represents a decision (like an if-then-else condition),
while rectangles are for processes and parallelograms are for input/output.
3. Which phase of the Software Development Life Cycle (SDLC) involves defining the
hardware and software architecture?
A. Analysis
B. Testing
C. Implementation
D. Design
Answer: D
Conceptual Explanation: The Design phase focuses on how the system will work,
including architecture, data models, and interface design.
4. What is the primary difference between a compiler and an interpreter?
A. A compiler executes code line by line, while an interpreter translates the whole program
at once.
B. An interpreter is only used for low-level languages, while a compiler is for high-level.
C. There is no difference; the terms are synonymous.
D. A compiler translates the entire source code into machine code before execution, while
an interpreter translates and executes it line by line.
, Answer: D
Conceptual Explanation: Compilers convert the whole script into an executable file,
whereas interpreters translate the code on the fly during runtime.
5. Which of the following is a characteristic of a high-level programming language?
A. It is written in binary (0s and 1s).
B. It interacts directly with the computer’s CPU registers without abstraction.
C. It does not require a compiler or interpreter.
D. It is easily understood by humans and uses English-like keywords.
Answer: D
Conceptual Explanation: High-level languages like Python or Java are designed to be
human-readable, abstracting away the complex hardware details.
6. Which data type would be most appropriate for storing the value 3.14?
A. Integer
B. Boolean
C. Floating-point
D. String
Answer: C