WGU D278 SCRIPTING AND
PROGRAMMING - FOUNDATIONS
COMPREHENSIVE FINAL PREP
QUESTIONS WITH VERIFIED ANSWERS
AND DETAILED EXPLANATIONS.
2026/2027
1. Which of the following best defines an algorithm in the context of programming?
A. A high-level programming language used for scripting.
B. A step-by-step procedure for solving a problem or accomplishing a task.
C. A visual representation of data flow within a database.
D. A hardware component that executes binary instructions.
Answer: B
Conceptual Explanation: An algorithm is a logical, sequential set of instructions designed
to perform a specific task or solve a computational problem.
2. What is the primary characteristic of a ‘high-level’ programming language?
A. It uses English-like syntax and is closer to human language than machine code.
B. It is specifically designed for hardware-level memory management.
C. It is written in binary code (0s and 1s).
,D. It does not require a compiler or interpreter to run.
Answer: A
Conceptual Explanation: High-level languages are designed to be readable by humans and
abstract away the complexities of computer hardware.
3. Which error type occurs when a program runs but produces incorrect or unexpected
results?
A. Syntax Error
B. Logic Error
C. Runtime Error
D. Compilation Error
Answer: B
Conceptual Explanation: A logic error is a bug that causes the program to operate
incorrectly, but not to crash or fail to compile.
4. In a flowchart, which shape is traditionally used to represent a decision-making point?
A. Rectangle
B. Diamond
C. Oval
D. Parallelogram
, Answer: B
Conceptual Explanation: The diamond symbol indicates a branch or decision where the
flow can take different paths based on a condition.
5. Which of the following is an example of an interpreted language?
A. C++
B. Assembly
C. Python
D. COBOL
Answer: C
Conceptual Explanation: Python is an interpreted language, meaning the code is executed
line-by-line by an interpreter rather than being pre-compiled into machine code.
6. What is the result of the following boolean expression: (True AND False) OR (NOT False)?
A. True
B. False
C. Null
D. Undefined
Answer: A
PROGRAMMING - FOUNDATIONS
COMPREHENSIVE FINAL PREP
QUESTIONS WITH VERIFIED ANSWERS
AND DETAILED EXPLANATIONS.
2026/2027
1. Which of the following best defines an algorithm in the context of programming?
A. A high-level programming language used for scripting.
B. A step-by-step procedure for solving a problem or accomplishing a task.
C. A visual representation of data flow within a database.
D. A hardware component that executes binary instructions.
Answer: B
Conceptual Explanation: An algorithm is a logical, sequential set of instructions designed
to perform a specific task or solve a computational problem.
2. What is the primary characteristic of a ‘high-level’ programming language?
A. It uses English-like syntax and is closer to human language than machine code.
B. It is specifically designed for hardware-level memory management.
C. It is written in binary code (0s and 1s).
,D. It does not require a compiler or interpreter to run.
Answer: A
Conceptual Explanation: High-level languages are designed to be readable by humans and
abstract away the complexities of computer hardware.
3. Which error type occurs when a program runs but produces incorrect or unexpected
results?
A. Syntax Error
B. Logic Error
C. Runtime Error
D. Compilation Error
Answer: B
Conceptual Explanation: A logic error is a bug that causes the program to operate
incorrectly, but not to crash or fail to compile.
4. In a flowchart, which shape is traditionally used to represent a decision-making point?
A. Rectangle
B. Diamond
C. Oval
D. Parallelogram
, Answer: B
Conceptual Explanation: The diamond symbol indicates a branch or decision where the
flow can take different paths based on a condition.
5. Which of the following is an example of an interpreted language?
A. C++
B. Assembly
C. Python
D. COBOL
Answer: C
Conceptual Explanation: Python is an interpreted language, meaning the code is executed
line-by-line by an interpreter rather than being pre-compiled into machine code.
6. What is the result of the following boolean expression: (True AND False) OR (NOT False)?
A. True
B. False
C. Null
D. Undefined
Answer: A