WGU D278 SCRIPTING AND
PROGRAMMING - FOUNDATIONS
FINAL EXAM GUIDE QUESTIONS WITH
VERIFIED ANSWERS 2026/2027
1. Which flowchart symbol is used to represent a decision-making process where a condition
is evaluated?
A. Diamond
B. Rectangle
C. Parallelogram
D. Oval
Answer: A
Conceptual Explanation: In flowcharting, a diamond represents a decision point where a
boolean condition is tested, leading to different paths.
2. What is the value of the expression 15 % 4 in most programming languages?
A. 3.75
B. 3
C. 1
D. 0
,Answer: B
Conceptual Explanation: The modulo operator (%) returns the remainder of a division.
15 divided by 4 is 3 with a remainder of 3.
3. Which of the following is a primary characteristic of a ‘while’ loop compared to a ‘for’ loop?
A. It always executes at least once.
B. It is only used for iterating through arrays.
C. It automatically increments a counter variable.
D. It is generally used when the number of iterations is unknown.
Answer: D
Conceptual Explanation: While loops are condition-controlled and used when the number
of iterations is not predetermined, whereas for loops are typically count-controlled.
4. In Object-Oriented Programming, what is a ‘class’?
A. An instance of an object in memory.
B. A specific function that returns a value.
C. A variable that stores multiple data types.
D. A blueprint or template for creating objects.
Answer: D
, Conceptual Explanation: A class defines the attributes and behaviors that the objects
created from it will possess; it acts as a blueprint.
5. Which phase of the Software Development Life Cycle (SDLC) involves fixing bugs and
updating the software?
A. Design
B. Implementation
C. Analysis
D. Maintenance
Answer: D
Conceptual Explanation: The maintenance phase is the final stage of the SDLC where
software is monitored, bugs are fixed, and updates are provided.
6. What is the result of the logical expression: (True AND False) OR (True)?
A. Undefined
B. False
C. Null
D. True
Answer: D
Conceptual Explanation: (True AND False) evaluates to False. Then, (False OR True)
evaluates to True because only one side needs to be true in an OR operation.
PROGRAMMING - FOUNDATIONS
FINAL EXAM GUIDE QUESTIONS WITH
VERIFIED ANSWERS 2026/2027
1. Which flowchart symbol is used to represent a decision-making process where a condition
is evaluated?
A. Diamond
B. Rectangle
C. Parallelogram
D. Oval
Answer: A
Conceptual Explanation: In flowcharting, a diamond represents a decision point where a
boolean condition is tested, leading to different paths.
2. What is the value of the expression 15 % 4 in most programming languages?
A. 3.75
B. 3
C. 1
D. 0
,Answer: B
Conceptual Explanation: The modulo operator (%) returns the remainder of a division.
15 divided by 4 is 3 with a remainder of 3.
3. Which of the following is a primary characteristic of a ‘while’ loop compared to a ‘for’ loop?
A. It always executes at least once.
B. It is only used for iterating through arrays.
C. It automatically increments a counter variable.
D. It is generally used when the number of iterations is unknown.
Answer: D
Conceptual Explanation: While loops are condition-controlled and used when the number
of iterations is not predetermined, whereas for loops are typically count-controlled.
4. In Object-Oriented Programming, what is a ‘class’?
A. An instance of an object in memory.
B. A specific function that returns a value.
C. A variable that stores multiple data types.
D. A blueprint or template for creating objects.
Answer: D
, Conceptual Explanation: A class defines the attributes and behaviors that the objects
created from it will possess; it acts as a blueprint.
5. Which phase of the Software Development Life Cycle (SDLC) involves fixing bugs and
updating the software?
A. Design
B. Implementation
C. Analysis
D. Maintenance
Answer: D
Conceptual Explanation: The maintenance phase is the final stage of the SDLC where
software is monitored, bugs are fixed, and updates are provided.
6. What is the result of the logical expression: (True AND False) OR (True)?
A. Undefined
B. False
C. Null
D. True
Answer: D
Conceptual Explanation: (True AND False) evaluates to False. Then, (False OR True)
evaluates to True because only one side needs to be true in an OR operation.