WGU D278 SCRIPTING AND
PROGRAMMING - FOUNDATIONS
FINAL EXAM QUESTIONS WITH
VERIFIED ANSWERS AND DETAILED
EXPLANATIONS. 2026/2027
1. In the software development life cycle (SDLC), which phase is primarily concerned with
identifying the specific features and functions the end-users require?
A. Design phase
B. Implementation phase
C. Testing phase
D. Analysis phase
Answer: D
Conceptual Explanation: The Analysis phase involves gathering requirements from
stakeholders to determine what the software must do.
2. Which of the following describes the ‘Waterfall’ methodology of software development?
A. A linear, sequential process where each phase must be completed before the next begins.
B. An iterative process where phases overlap frequently.
C. A process that focuses primarily on writing code before planning.
,D. A method that allows for changes in requirements at any point in the cycle.
Answer: A
Conceptual Explanation: Waterfall is a traditional, linear model where progress flows
downwards through phases like a waterfall.
3. In programming, what is the primary purpose of a compiler?
A. To translate high-level source code into machine code before execution.
B. To execute code line by line at runtime.
C. To provide a graphical interface for writing code.
D. To fix logical errors in a program automatically.
Answer: A
Conceptual Explanation: Compilers translate the entire source code into a machine-
readable format or executable file before the program runs.
4. Which data type would be most appropriate for storing a user’s age in years?
A. Float
B. String
C. Boolean
D. Integer
Answer: D
, Conceptual Explanation: Age in years is a whole number, making Integer the most
efficient and logical choice.
5. Consider the Boolean expression: (True AND False) OR (NOT False). What is the final result?
A. Undefined
B. False
C. True
D. Null
Answer: C
Conceptual Explanation: (True AND False) is False. (NOT False) is True. False OR True
results in True.
6. Which control structure is used to execute a block of code only if a specific condition is
met?
A. Repetition
B. Declaration
C. Sequence
D. Selection
Answer: D
Conceptual Explanation: Selection structures, like ‘if’ statements, choose which path to
follow based on a condition.
PROGRAMMING - FOUNDATIONS
FINAL EXAM QUESTIONS WITH
VERIFIED ANSWERS AND DETAILED
EXPLANATIONS. 2026/2027
1. In the software development life cycle (SDLC), which phase is primarily concerned with
identifying the specific features and functions the end-users require?
A. Design phase
B. Implementation phase
C. Testing phase
D. Analysis phase
Answer: D
Conceptual Explanation: The Analysis phase involves gathering requirements from
stakeholders to determine what the software must do.
2. Which of the following describes the ‘Waterfall’ methodology of software development?
A. A linear, sequential process where each phase must be completed before the next begins.
B. An iterative process where phases overlap frequently.
C. A process that focuses primarily on writing code before planning.
,D. A method that allows for changes in requirements at any point in the cycle.
Answer: A
Conceptual Explanation: Waterfall is a traditional, linear model where progress flows
downwards through phases like a waterfall.
3. In programming, what is the primary purpose of a compiler?
A. To translate high-level source code into machine code before execution.
B. To execute code line by line at runtime.
C. To provide a graphical interface for writing code.
D. To fix logical errors in a program automatically.
Answer: A
Conceptual Explanation: Compilers translate the entire source code into a machine-
readable format or executable file before the program runs.
4. Which data type would be most appropriate for storing a user’s age in years?
A. Float
B. String
C. Boolean
D. Integer
Answer: D
, Conceptual Explanation: Age in years is a whole number, making Integer the most
efficient and logical choice.
5. Consider the Boolean expression: (True AND False) OR (NOT False). What is the final result?
A. Undefined
B. False
C. True
D. Null
Answer: C
Conceptual Explanation: (True AND False) is False. (NOT False) is True. False OR True
results in True.
6. Which control structure is used to execute a block of code only if a specific condition is
met?
A. Repetition
B. Declaration
C. Sequence
D. Selection
Answer: D
Conceptual Explanation: Selection structures, like ‘if’ statements, choose which path to
follow based on a condition.